#CCC97B#CCC97B

#CCC97B is a very light, moderate yellow. Relative luminance 0.560; OKLCH L 82.1% C 0.100 H 106.5°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#CCC97B
RGBrgb(204, 201, 123)
HSLhsl(58, 44%, 64%)
HSVhsv(58, 40%, 80%)
CMYKcmyk(0%, 1.5%, 39.7%, 20%)
CIE-LABlab(79.64, -10.32, 39.32)
CIE-LCHlch(79.64, 40.65, 104.71°)
OKLaboklab(82.09% -0.0283 0.0957)
OKLCHoklch(82.09% 0.1 106.5)
XYZxyz(49.3644, 56.0418, 26.9518)
Luminance0.5604 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC97B #7B7ECC
analogous
#CCA17B #CCC97B #A7CC7B
triadic
#CCC97B #7BCCC9 #C97BCC
tetradic
#CCC97B #7BCCA1 #7B7ECC #CC7BA7
square
#CCC97B #7BCCA1 #7B7ECC #CC7BA7
split-complementary
#CCC97B #7BA7CC #A17BCC
monochromatic
#949039 #BBB74F #CCC97B #DDDBA7 #EEEDD3

Accessibility & contrast

On white

1.72
#CCC97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#CCC97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC97B
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC97B#FFFFFF#000000##000000
##CCC97B1.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C375
Deuteranopia (green-blind)
#D7C77E
Tritanopia (blue-blind)
#D7C0B6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #ccc97b;
/* rgb */ color: rgb(204, 201, 123);
/* oklch */ color: oklch(82.1% 0.100 106.5);
Tailwind
colors: {
  custom: {
    50: '#ddd9a2',
    500: '#ccc97b',
    950: '#000000',
  },
}
SCSS
$custom: #ccc97b;
$custom-light: #ddd9a2;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc97b",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 123
  },
  "hsl": {
    "h": 57.778,
    "s": 44.262,
    "l": 64.118
  },
  "oklch": {
    "l": 0.82085,
    "c": 0.09984,
    "h": 106.5
  },
  "luminance": 0.56041
}

Semantic roles & 50–950 ramp

primary
#CCC97B
secondary
#51549A
accent
#33B72E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC97B

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

Preview Lab → · Contrast checker → · Palette generator →

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