#CCCC97#CCCC97

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

Color values

HEX#CCCC97
RGBrgb(204, 204, 151)
HSLhsl(60, 34%, 70%)
HSVhsv(60, 26%, 80%)
CMYKcmyk(0%, 0%, 26%, 20%)
CIE-LABlab(80.88, -8.45, 26.51)
CIE-LCHlch(80.88, 27.82, 107.67°)
OKLaboklab(83.22% -0.0215 0.0667)
OKLCHoklch(83.22% 0.07 107.8)
XYZxyz(52.0806, 58.2582, 37.7735)
Luminance0.5826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCC97 #9797CC
analogous
#CCB297 #CCCC97 #B2CC97
triadic
#CCCC97 #97CCCC #CC97CC
tetradic
#CCCC97 #97CCB2 #9797CC #CC97B2
square
#CCCC97 #97CCB2 #9797CC #CC97B2
split-complementary
#CCCC97 #97B2CC #B297CC
monochromatic
#9C9C4D #B8B86E #CCCC97 #E0E0C0 #F4F4E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCCC97#FFFFFF#000000##000000
##CCCC971.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)
#D5C894
Deuteranopia (green-blind)
#D6CA99
Tritanopia (blue-blind)
#D4C5BE
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cccc97;
/* rgb */ color: rgb(204, 204, 151);
/* oklch */ color: oklch(83.2% 0.070 107.8);
Tailwind
colors: {
  custom: {
    50: '#dcdbb6',
    500: '#cccc97',
    950: '#000000',
  },
}
SCSS
$custom: #cccc97;
$custom-light: #dcdbb6;
$custom-dark: #000000;
JSON
{
  "hex": "#cccc97",
  "rgb": {
    "r": 204,
    "g": 204,
    "b": 151
  },
  "hsl": {
    "h": 60,
    "s": 34.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.8322,
    "c": 0.07011,
    "h": 107.8
  },
  "luminance": 0.58257
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCCC97

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

Preview Lab → · Contrast checker → · Palette generator →

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