#CCC939#CCC939

#CCC939 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.4% C 0.158 H 108.2°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#CCC939
RGBrgb(204, 201, 57)
HSLhsl(59, 59%, 51%)
HSVhsv(59, 72%, 80%)
CMYKcmyk(0%, 1.5%, 72.1%, 20%)
CIE-LABlab(78.99, -15.37, 67.84)
CIE-LCHlch(78.99, 69.56, 102.77°)
OKLaboklab(81.36% -0.0493 0.1498)
OKLCHoklch(81.36% 0.158 108.2)
XYZxyz(46.5288, 54.9076, 12.0174)
Luminance0.5491 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC939 #393CCC
analogous
#CC7F39 #CCC939 #85CC39
triadic
#CCC939 #39CCC9 #C939CC
tetradic
#CCC939 #39CC7F #393CCC #CC3985
square
#CCC939 #39CC7F #393CCC #CC3985
split-complementary
#CCC939 #3985CC #7F39CC
monochromatic
#6E6D1C #9F9C29 #CCC939 #D9D66A #E5E49A

Accessibility & contrast

On white

1.75
#CCC939 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.98
#CCC939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC939
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC939#FFFFFF#000000##000000
##CCC9391.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC11D
Deuteranopia (green-blind)
#DCC644
Tritanopia (blue-blind)
#DBBCAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc939;
/* rgb */ color: rgb(204, 201, 57);
/* oklch */ color: oklch(81.4% 0.158 108.2);
Tailwind
colors: {
  custom: {
    50: '#dfd979',
    500: '#ccc939',
    950: '#000000',
  },
}
SCSS
$custom: #ccc939;
$custom-light: #dfd979;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc939",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 57
  },
  "hsl": {
    "h": 58.776,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.81359,
    "c": 0.15769,
    "h": 108.2
  },
  "luminance": 0.54906
}

Semantic roles & 50–950 ramp

primary
#CCC939
secondary
#323378
accent
#49E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC939

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

Preview Lab → · Contrast checker → · Palette generator →

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