#CDC97D#CDC97D

#CDC97D is a very light, moderate yellow. Relative luminance 0.562; OKLCH L 82.2% C 0.098 H 105.7°. Best body text is #000000 at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#CDC97D
RGBrgb(205, 201, 125)
HSLhsl(57, 44%, 65%)
HSVhsv(57, 39%, 80%)
CMYKcmyk(0%, 2%, 39%, 19.6%)
CIE-LABlab(79.75, -9.71, 38.46)
CIE-LCHlch(79.75, 39.67, 104.16°)
OKLaboklab(82.2% -0.0265 0.0939)
OKLCHoklch(82.2% 0.098 105.7)
XYZxyz(49.7659, 56.2342, 27.6308)
Luminance0.5623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC97D #7D81CD
analogous
#CDA17D #CDC97D #A9CD7D
triadic
#CDC97D #7DCDC9 #C97DCD
tetradic
#CDC97D #7DCDA1 #7D81CD #CD7DA9
square
#CDC97D #7DCDA1 #7D81CD #CD7DA9
split-complementary
#CDC97D #7DA9CD #A17DCD
monochromatic
#96913A #BCB751 #CDC97D #DEDBA9 #EFEED5

Accessibility & contrast

On white

1.71
#CDC97D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.25
#CDC97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC97D
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC97D#FFFFFF#000000##000000
##CDC97D1.001.7112.2512.25
#FFFFFF1.711.0021.0021.00
#00000012.2521.001.001.00
##00000012.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C477
Deuteranopia (green-blind)
#D7C780
Tritanopia (blue-blind)
#D8C0B6
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdc97d;
/* rgb */ color: rgb(205, 201, 125);
/* oklch */ color: oklch(82.2% 0.098 105.7);
Tailwind
colors: {
  custom: {
    50: '#ddd9a3',
    500: '#cdc97d',
    950: '#000000',
  },
}
SCSS
$custom: #cdc97d;
$custom-light: #ddd9a3;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc97d",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 125
  },
  "hsl": {
    "h": 57,
    "s": 44.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.82201,
    "c": 0.09753,
    "h": 105.7
  },
  "luminance": 0.56233
}

Semantic roles & 50–950 ramp

primary
#CDC97D
secondary
#52569C
accent
#35B82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC97D

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

Preview Lab → · Contrast checker → · Palette generator →

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