#CCCC96#CCCC96

#CCCC96 is a very light, moderate yellow. Relative luminance 0.582; OKLCH L 83.2% C 0.071 H 107.9°. Best body text is #000000 at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#CCCC96
RGBrgb(204, 204, 150)
HSLhsl(60, 35%, 69%)
HSVhsv(60, 26%, 80%)
CMYKcmyk(0%, 0%, 26.5%, 20%)
CIE-LABlab(80.86, -8.58, 27.01)
CIE-LCHlch(80.86, 28.34, 107.63°)
OKLaboklab(83.2% -0.0219 0.0679)
OKLCHoklch(83.2% 0.071 107.9)
XYZxyz(51.9998, 58.2259, 37.3476)
Luminance0.5823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC96 #9696CC
analogous
#CCB196 #CCCC96 #B1CC96
triadic
#CCCC96 #96CCCC #CC96CC
tetradic
#CCCC96 #96CCB1 #9696CC #CC96B1
square
#CCCC96 #96CCB1 #9696CC #CC96B1
split-complementary
#CCCC96 #96B1CC #B196CC
monochromatic
#9C9C4C #B8B86D #CCCC96 #E0E0BF #F4F4E8

Accessibility & contrast

On white

1.66
#CCCC96 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.65
#CCCC96 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCC96
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCC96#FFFFFF#000000##000000
##CCCC961.001.6612.6512.65
#FFFFFF1.661.0021.0021.00
#00000012.6521.001.001.00
##00000012.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C792
Deuteranopia (green-blind)
#D6CA98
Tritanopia (blue-blind)
#D4C5BE
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cccc96;
/* rgb */ color: rgb(204, 204, 150);
/* oklch */ color: oklch(83.2% 0.071 107.9);
Tailwind
colors: {
  custom: {
    50: '#dcdbb5',
    500: '#cccc96',
    950: '#000000',
  },
}
SCSS
$custom: #cccc96;
$custom-light: #dcdbb5;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc96",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 150
  },
  "hsl": {
    "h": 60,
    "s": 34.615,
    "l": 69.412
  },
  "oklch": {
    "l": 0.832,
    "c": 0.07136,
    "h": 107.9
  },
  "luminance": 0.58225
}

Semantic roles & 50–950 ramp

primary
#CCCC96
secondary
#6565A1
accent
#38AD38
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151511
muted
#848481

Preview Lab

Preview with #CCCC96

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

Preview Lab → · Contrast checker → · Palette generator →

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