#CCB939#CCB939

#CCB939 is a light, vivid yellow. Relative luminance 0.478; OKLCH L 78.0% C 0.144 H 100.6°. Best body text is #000000 at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#CCB939
RGBrgb(204, 185, 57)
HSLhsl(52, 59%, 51%)
HSVhsv(52, 72%, 80%)
CMYKcmyk(0%, 9.3%, 72.1%, 20%)
CIE-LABlab(74.72, -7.22, 63.72)
CIE-LCHlch(74.72, 64.13, 96.46°)
OKLaboklab(77.96% -0.0264 0.1411)
OKLCHoklch(77.96% 0.144 100.6)
XYZxyz(42.9913, 47.8327, 10.8382)
Luminance0.4783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCB939 #394CCC
analogous
#CC6F39 #CCB939 #95CC39
triadic
#CCB939 #39CCB9 #B939CC
tetradic
#CCB939 #39CC6F #394CCC #CC3995
square
#CCB939 #39CC6F #394CCC #CC3995
split-complementary
#CCB939 #3995CC #6F39CC
monochromatic
#6E641C #9F9029 #CCB939 #D9CA6A #E5DB9A

Accessibility & contrast

On white

1.99
#CCB939 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.57
#CCB939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCB939
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCB939#FFFFFF#000000##000000
##CCB9391.001.9910.5710.57
#FFFFFF1.991.0021.0021.00
#00000010.5721.001.001.00
##00000010.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB424
Deuteranopia (green-blind)
#D0BB41
Tritanopia (blue-blind)
#DCACA0
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #ccb939;
/* rgb */ color: rgb(204, 185, 57);
/* oklch */ color: oklch(78.0% 0.144 100.6);
Tailwind
colors: {
  custom: {
    50: '#dfcd78',
    500: '#ccb939',
    950: '#000000',
  },
}
SCSS
$custom: #ccb939;
$custom-light: #dfcd78;
$custom-dark: #000000;
JSON
{
  "hex": "#ccb939",
  "rgb": {
    "r": 204,
    "g": 185,
    "b": 57
  },
  "hsl": {
    "h": 52.245,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.77961,
    "c": 0.14352,
    "h": 100.6
  },
  "luminance": 0.47831
}

Semantic roles & 50–950 ramp

primary
#CCB939
secondary
#9098D1
accent
#5AE246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CCB939

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CCB939 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva