UltKit

Color Picker

Pick any color and get its code in every common format, ready to copy. Generate matching palettes, extract the dominant colors of a photo without uploading it, and test whether a text and background pair passes WCAG contrast.

Color picker

Selected color#2F6FED

Color codes in every format

  • HEX#2F6FED
  • RGB47, 111, 237
  • HSL220°, 84%, 56%
  • HSB / HSV220°, 80%, 93%
  • CMYK (approx.)80%, 53%, 0%, 7%
  • CSS rgb()rgb(47 111 237)
  • CSS hsl()hsl(220 84% 56%)

Palettes from this color

Complementary

Analogous

Triadic

Tints (mixed with white)

Shades (mixed with black)

Palette from an image

Your image is read by your own browser and never uploaded: the pixels are sampled on a canvas on this device and nothing is sent anywhere.

Drop a photo, screenshot or logo here

The six dominant colors of your image will appear here. Click a swatch to load it into the picker.

Contrast checker (WCAG 2.1)

Text color
Background color

Large text sample

The quick brown fox jumps over the lazy dog. 0123456789

Contrast ratio14.67:1
  • AA · normal textPass
  • AAA · normal textPass
  • AA · large textPass
  • AAA · large textPass

Large text means at least 18 pt (24 px) regular or 14 pt (about 18.7 px) bold. AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.

Common CSS named colors

Twenty keywords every browser understands, with their exact HEX, RGB and HSL values.

NameHEX
black#000000
white#ffffff
gray#808080
silver#c0c0c0
red#ff0000
crimson#dc143c
maroon#800000
tomato#ff6347
coral#ff7f50
orange#ffa500
gold#ffd700
yellow#ffff00
olive#808000
green#008000
teal#008080
aqua#00ffff
blue#0000ff
navy#000080
purple#800080
rebeccapurple#663399

What HEX, RGB, HSL and HSB actually describe

Every color on this page lives in sRGB, the default color space of the web since browsers adopted it in the late 1990s. A screen mixes red, green and blue light, and each channel has 256 levels (0–255), which gives 16,777,216 possible colors. RGB writes those three numbers directly; HEX writes the same three numbers in base 16, two digits each, so #FF6600 is red 255, green 102, blue 0. The three-digit shorthand doubles each digit: #F60 is #FF6600.

HSL and HSB (also called HSV) describe the same colors in a way that is easier to adjust by hand. Hue is an angle on the color wheel: 0° red, 120° green, 240° blue. The difference is in the last number. In HSL, lightness 100% is always white and 50% is the purest version of the hue; in HSB, brightness 100% is the pure hue and white needs saturation 0%. Design apps such as Photoshop and Figma use HSB in their pickers, while CSS understands hsl() natively, which is why both are listed above.

Why the CMYK value is only an approximation

Screens add light; printers subtract it with cyan, magenta, yellow and black ink. The two systems cover different ranges of color, called gamuts. Very saturated screen colors, such as a bright RGB green, an electric blue or a neon orange, sit outside what process inks can reproduce, so they print duller than they look on a monitor.

The CMYK numbers here use the plain mathematical conversion without an ICC profile, which is useful for a rough brief but not for press. A printer converts with a profile for its paper and press, such as FOGRA39 in Europe or GRACoL in the United States, and the same RGB color can come out with different ink percentages under each. For print work, send the RGB or HEX value together with the profile your printer asks for.

How the contrast ratio is calculated

WCAG 2.1 compares the relative luminance of two colors: the lighter one plus 0.05, divided by the darker one plus 0.05. The result runs from 1:1 (identical colors) to 21:1 (black on white). Level AA asks for at least 4.5:1 for normal text and 3:1 for large text, meaning 18 point or 14 point bold; level AAA raises that to 7:1 and 4.5:1. User-interface parts such as input borders and icons need 3:1 against their surroundings under success criterion 1.4.11.

Luminance weighs green far more heavily than blue, because the eye is most sensitive to it. That is why yellow text on white fails badly while dark blue on white passes easily, even though both colors look fully saturated. Logos and purely decorative text are exempt from the rule.

Getting a palette from a photo or logo

The image palette reads your file with the browser's canvas, shrinks it to at most 200 pixels on the long side and groups similar pixels with the median-cut method described by Paul Heckbert in 1982: the color range is split again and again along its widest channel until six groups remain, and each group's average becomes a swatch. Transparent pixels are ignored, so a logo on a transparent background gives the logo's colors.

Once you have the colors, a flat logo often works better as a vector. The image to SVG converter traces it into shapes that keep these exact colors, and if you are designing a channel header, the YouTube banner resizer fits the artwork to 2560 × 1440 with the safe area in mind.

Frequently asked questions

Why is CSS "green" darker than the green in the RGB picker?
The keyword green is #008000, a medium green inherited from the old 16-color HTML palette. The fully saturated #00FF00 is called lime. The full CSS list has similar surprises: gray (#808080) is darker than darkgray (#A9A9A9).
Is my image uploaded when I extract a palette?
No. The file is opened by your browser, drawn on a canvas in memory and analysed there. No request is made with the image, and closing the tab discards it.
What contrast ratio do I need for body text?
At least 4.5:1 to meet WCAG 2.1 level AA, and 7:1 for level AAA. Headings that are 18 point or larger, or 14 point bold, may use 3:1 for AA. Many design systems aim for 4.5:1 everywhere so that text stays readable on dim screens and in sunlight.
Can I use an 8-digit HEX code with transparency?
Yes, in CSS. The last two digits are the alpha channel, so #2F6FED80 is the same blue at about 50% opacity. This picker works with opaque colors, so it shows six digits; add the alpha pair yourself when you need it.
How many named colors does CSS have?
The CSS Color Module Level 4 defines 148 color keywords, counting the duplicate spellings such as gray and grey. The newest is rebeccapurple (#663399), added in 2014 in memory of Rebecca Meyer, the daughter of CSS author Eric Meyer.