Design tool

Color Converter & Contrast Checker

Convert HEX, RGB and HSL instantly, then test whether your text colour is readable on its background.

Contrast checker (WCAG)

Sample heading text

The quick brown fox jumps over the lazy dog.

6.29:1

AA text PassAA large PassAAA text FailAAA large Pass

Shades & harmonies

What is a colour converter and contrast checker?

Colours on screens can be written in several formats. HEX (like #4F46E5) is the most common in web design, RGB (rgb(79, 70, 229)) describes the amounts of red, green and blue light, and HSL (hsl(243, 75%, 59%)) describes hue, saturation and lightness in a way that is easier for humans to adjust. A colour converter translates between them so you can use the same colour in any tool or stylesheet.

A contrast checker answers a different question: can people actually read this text? It compares the brightness of the text colour and background colour and gives a contrast ratio. The Web Content Accessibility Guidelines (WCAG) set minimum ratios so that text is readable for people with low vision or colour-vision deficiencies. BoreBreak's tool does both in one place.

How to use the colour tools

  1. 1Type a HEX code, use the colour picker, or edit the R, G, B or H, S, L number boxes. Every other value updates automatically.
  2. 2Click a row under the preview (HEX, RGB or HSL) to copy that value ready for CSS.
  3. 3To check readability, enter a background colour in the Contrast checker. Your main colour is used as the text colour.
  4. 4Read the contrast ratio and the AA and AAA pass or fail badges.
  5. 5Click any shade or harmony swatch to explore related colours, then use it as your new colour.

HEX, RGB and HSL compared

FormatLooks likeBest for
HEX#4F46E5CSS, design tools, sharing a brand colour
RGBrgb(79, 70, 229)Image editing, code that needs separate channels
HSLhsl(243, 75%, 59%)Making lighter or darker shades and picking harmonies

A 3-digit HEX such as #FFF is shorthand for #FFFFFF. Each pair of HEX digits is a number from 0 to 255 in base 16: for example 4F is 79.

WCAG contrast requirements explained

The contrast ratio ranges from 1:1 (no contrast, such as white on white) to 21:1 (black on white). WCAG defines two conformance levels. AA is the standard target for most websites and AAA is the stricter enhanced level.

LevelNormal textLarge text (18pt or 14pt bold and up)
AAAt least 4.5:1At least 3:1
AAAAt least 7:1At least 4.5:1

Colour converter versus a design tool's colour picker

FeatureBoreBreakTypical design app
Works in your browser, no installYesUsually needs an app or account
Converts HEX, RGB and HSL togetherYesYes
Built-in WCAG contrast checkYesOften a plugin
Shades and harmoniesYesYes
FreeYesOften paid

How these tools are useful

Web and app design

Convert brand colours to the format your code or design file needs.

Accessibility

Prove that your text and buttons meet WCAG contrast requirements.

Building palettes

Generate lighter and darker shades and complementary colours from one base.

Presentations and documents

Pick readable text and background combinations.

Learning

See how HEX, RGB and HSL relate to each other.

What to know before using it

  • Contrast results only measure colour brightness. Font size, weight and the surrounding design also affect readability.
  • Colours can look different on different screens and under different lighting. Check important colours on real devices.
  • HSL values are rounded to whole numbers, so converting back and forth can change a HEX value by a tiny amount.
  • The tool does not support transparency (alpha), CMYK or print colour profiles.
  • Passing AA contrast does not guarantee full accessibility. Test with real users where it matters.
  • Your last colours are remembered in your browser only.

Colour and accessibility tips

  • Do not rely on colour alone to convey meaning. Add icons or text for errors and success.
  • Aim for at least 4.5:1 for body text and 3:1 for large headings and UI components.
  • Check hover, disabled and focus states, not just the default one.
  • Use HSL to build consistent shades: keep the hue and change only the lightness.
  • Test your colours in dark mode too.

Common problems and fixes

'Enter a valid HEX code'

Use 3 or 6 hexadecimal digits (0 to 9 and A to F), with or without the #.

My contrast ratio looks too low

Darken the text or lighten the background. Even small lightness changes make a big difference.

The RGB and HSL numbers will not go over a limit

RGB values are limited to 0 to 255, hue to 0 to 360 and saturation and lightness to 0 to 100.

The copied HEX differs slightly

Rounding between HSL and RGB can change a value by one step.

Frequently Asked Questions

How do I convert HEX to RGB?

Split the HEX into three pairs and convert each from base 16 to a number from 0 to 255. Or type the HEX into the tool and read the RGB values instantly.

What is a good contrast ratio?

At least 4.5:1 for normal text and 3:1 for large text meets WCAG AA. 7:1 meets the stricter AAA level for normal text.

What is HSL?

Hue (the colour wheel position from 0 to 360), saturation (how vivid) and lightness (how light or dark). It is easier to adjust by hand than RGB.

What is the difference between AA and AAA?

AA is the common accessibility target. AAA is stricter and requires a higher contrast ratio.

Can I enter a 3-digit HEX code?

Yes. #FFF is treated as #FFFFFF.

Does the tool support transparency?

No. It handles opaque colours in HEX, RGB and HSL.

Are my colours stored online?

No. Your last colours are kept in your browser's local storage only.

Is passing the contrast check enough for accessibility?

It is an important part, but accessibility also covers font size, keyboard use, screen readers and more.