#CCC97D#CCC97D

#CCC97D is a very light, moderate yellow. Relative luminance 0.561; OKLCH L 82.1% C 0.098 H 106.4°. Best body text is #000000 at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#CCC97D
RGBrgb(204, 201, 125)
HSLhsl(58, 44%, 65%)
HSVhsv(58, 39%, 80%)
CMYKcmyk(0%, 1.5%, 38.7%, 20%)
CIE-LABlab(79.67, -10.10, 38.34)
CIE-LCHlch(79.67, 39.65, 104.76°)
OKLaboklab(82.12% -0.0276 0.0936)
OKLCHoklch(82.12% 0.098 106.4)
XYZxyz(49.4909, 56.0924, 27.6179)
Luminance0.5609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC97D #7D80CC
analogous
#CCA27D #CCC97D #A7CC7D
triadic
#CCC97D #7DCCC9 #C97DCC
tetradic
#CCC97D #7DCCA2 #7D80CC #CC7DA7
square
#CCC97D #7DCCA2 #7D80CC #CC7DA7
split-complementary
#CCC97D #7DA7CC #A27DCC
monochromatic
#94913A #BBB751 #CCC97D #DDDBA9 #EEEED5

Accessibility & contrast

On white

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

On black

12.22
#CCC97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC97D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC97D#FFFFFF#000000##000000
##CCC97D1.001.7212.2212.22
#FFFFFF1.721.0021.0021.00
#00000012.2221.001.001.00
##00000012.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccc97d;
/* rgb */ color: rgb(204, 201, 125);
/* oklch */ color: oklch(82.1% 0.098 106.4);
Tailwind
colors: {
  custom: {
    50: '#ddd9a3',
    500: '#ccc97d',
    950: '#000000',
  },
}
SCSS
$custom: #ccc97d;
$custom-light: #ddd9a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc97d",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 125
  },
  "hsl": {
    "h": 57.722,
    "s": 43.646,
    "l": 64.51
  },
  "oklch": {
    "l": 0.82118,
    "c": 0.09758,
    "h": 106.4
  },
  "luminance": 0.56091
}

Semantic roles & 50–950 ramp

primary
#CCC97D
secondary
#52559B
accent
#34B72F
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CCC97D

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

Preview Lab → · Contrast checker → · Palette generator →

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