#CDC97C#CDC97C

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

Color values

HEX#CDC97C
RGBrgb(205, 201, 124)
HSLhsl(57, 45%, 65%)
HSVhsv(57, 40%, 80%)
CMYKcmyk(0%, 2%, 39.5%, 19.6%)
CIE-LABlab(79.73, -9.82, 38.95)
CIE-LCHlch(79.73, 40.17, 104.14°)
OKLaboklab(82.19% -0.0269 0.0949)
OKLCHoklch(82.19% 0.099 105.8)
XYZxyz(49.7024, 56.2088, 27.2960)
Luminance0.5621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC97C #7C80CD
analogous
#CDA17C #CDC97C #A9CD7C
triadic
#CDC97C #7CCDC9 #C97CCD
tetradic
#CDC97C #7CCDA1 #7C80CD #CD7CA9
square
#CDC97C #7CCDA1 #7C80CD #CD7CA9
split-complementary
#CDC97C #7CA9CD #A17CCD
monochromatic
#969139 #BCB750 #CDC97C #DEDBA8 #EFEED5

Accessibility & contrast

On white

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

On black

12.24
#CDC97C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC97C
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC97C#FFFFFF#000000##000000
##CDC97C1.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc97c;
/* rgb */ color: rgb(205, 201, 124);
/* oklch */ color: oklch(82.2% 0.099 105.8);
Tailwind
colors: {
  custom: {
    50: '#ddd9a3',
    500: '#cdc97c',
    950: '#000000',
  },
}
SCSS
$custom: #cdc97c;
$custom-light: #ddd9a3;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc97c",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 124
  },
  "hsl": {
    "h": 57.037,
    "s": 44.751,
    "l": 64.51
  },
  "oklch": {
    "l": 0.82185,
    "c": 0.09866,
    "h": 105.8
  },
  "luminance": 0.56208
}

Semantic roles & 50–950 ramp

primary
#CDC97C
secondary
#51559C
accent
#34B82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC97C

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

Preview Lab → · Contrast checker → · Palette generator →

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