#CDC97F#CDC97F

#CDC97F is a very light, moderate yellow. Relative luminance 0.563; OKLCH L 82.2% C 0.095 H 105.6°. Best body text is #000000 at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#CDC97F
RGBrgb(205, 201, 127)
HSLhsl(57, 44%, 65%)
HSVhsv(57, 38%, 80%)
CMYKcmyk(0%, 2%, 38%, 19.6%)
CIE-LABlab(79.78, -9.48, 37.48)
CIE-LCHlch(79.78, 38.66, 104.20°)
OKLaboklab(82.23% -0.0257 0.0917)
OKLCHoklch(82.23% 0.095 105.6)
XYZxyz(49.8950, 56.2859, 28.3104)
Luminance0.5628 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC97F #7F83CD
analogous
#CDA27F #CDC97F #AACD7F
triadic
#CDC97F #7FCDC9 #C97FCD
tetradic
#CDC97F #7FCDA2 #7F83CD #CD7FAA
square
#CDC97F #7FCDA2 #7F83CD #CD7FAA
split-complementary
#CDC97F #7FAACD #A27FCD
monochromatic
#97923B #BCB653 #CDC97F #DEDCAB #EFEED7

Accessibility & contrast

On white

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

On black

12.26
#CDC97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC97F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC97F#FFFFFF#000000##000000
##CDC97F1.001.7112.2612.26
#FFFFFF1.711.0021.0021.00
#00000012.2621.001.001.00
##00000012.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C479
Deuteranopia (green-blind)
#D7C782
Tritanopia (blue-blind)
#D8C0B7
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdc97f;
/* rgb */ color: rgb(205, 201, 127);
/* oklch */ color: oklch(82.2% 0.095 105.6);
Tailwind
colors: {
  custom: {
    50: '#ddd9a5',
    500: '#cdc97f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc97f;
$custom-light: #ddd9a5;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc97f",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 127
  },
  "hsl": {
    "h": 56.923,
    "s": 43.82,
    "l": 65.098
  },
  "oklch": {
    "l": 0.82234,
    "c": 0.09526,
    "h": 105.6
  },
  "luminance": 0.56285
}

Semantic roles & 50–950 ramp

primary
#CDC97F
secondary
#53579D
accent
#36B72F
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC97F

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

Preview Lab → · Contrast checker → · Palette generator →

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