#CCCC79#CCCC79

#CCCC79 is a very light, moderate yellow. Relative luminance 0.574; OKLCH L 82.7% C 0.106 H 108.5°. Best body text is #000000 at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#CCCC79
RGBrgb(204, 204, 121)
HSLhsl(60, 45%, 64%)
HSVhsv(60, 41%, 80%)
CMYKcmyk(0%, 0%, 40.7%, 20%)
CIE-LABlab(80.41, -12.06, 41.29)
CIE-LCHlch(80.41, 43.02, 106.28°)
OKLaboklab(82.69% -0.0335 0.1001)
OKLCHoklch(82.69% 0.106 108.5)
XYZxyz(49.9467, 57.4046, 26.5345)
Luminance0.5740 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC79 #7979CC
analogous
#CCA279 #CCCC79 #A2CC79
triadic
#CCCC79 #79CCCC #CC79CC
tetradic
#CCCC79 #79CCA2 #7979CC #CC79A2
square
#CCCC79 #79CCA2 #7979CC #CC79A2
split-complementary
#CCCC79 #79A2CC #A279CC
monochromatic
#939338 #BBBB4D #CCCC79 #DDDDA5 #EEEED2

Accessibility & contrast

On white

1.68
#CCCC79 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.48
#CCCC79 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC79
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC79#FFFFFF#000000##000000
##CCCC791.001.6812.4812.48
#FFFFFF1.681.0021.0021.00
#00000012.4821.001.001.00
##00000012.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C672
Deuteranopia (green-blind)
#DAC97D
Tritanopia (blue-blind)
#D7C3B8
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cccc79;
/* rgb */ color: rgb(204, 204, 121);
/* oklch */ color: oklch(82.7% 0.106 108.5);
Tailwind
colors: {
  custom: {
    50: '#dddba1',
    500: '#cccc79',
    950: '#000000',
  },
}
SCSS
$custom: #cccc79;
$custom-light: #dddba1;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc79",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 121
  },
  "hsl": {
    "h": 60,
    "s": 44.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.82687,
    "c": 0.10556,
    "h": 108.5
  },
  "luminance": 0.57404
}

Semantic roles & 50–950 ramp

primary
#CCCC79
secondary
#505099
accent
#2DB82D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CCCC79

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

Preview Lab → · Contrast checker → · Palette generator →

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