#CDC97E#CDC97E

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

Color values

HEX#CDC97E
RGBrgb(205, 201, 126)
HSLhsl(57, 44%, 65%)
HSVhsv(57, 39%, 80%)
CMYKcmyk(0%, 2%, 38.5%, 19.6%)
CIE-LABlab(79.76, -9.60, 37.97)
CIE-LCHlch(79.76, 39.16, 104.18°)
OKLaboklab(82.22% -0.0261 0.0928)
OKLCHoklch(82.22% 0.096 105.7)
XYZxyz(49.8301, 56.2599, 27.9689)
Luminance0.5626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC97E #7E82CD
analogous
#CDA27E #CDC97E #AACD7E
triadic
#CDC97E #7ECDC9 #C97ECD
tetradic
#CDC97E #7ECDA2 #7E82CD #CD7EAA
square
#CDC97E #7ECDA2 #7E82CD #CD7EAA
split-complementary
#CDC97E #7EAACD #A27ECD
monochromatic
#96923A #BCB752 #CDC97E #DEDBAA #EFEED6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC97E#FFFFFF#000000##000000
##CDC97E1.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)
#D5C478
Deuteranopia (green-blind)
#D7C781
Tritanopia (blue-blind)
#D8C0B6
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdc97e;
/* rgb */ color: rgb(205, 201, 126);
/* oklch */ color: oklch(82.2% 0.096 105.7);
Tailwind
colors: {
  custom: {
    50: '#ddd9a4',
    500: '#cdc97e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc97e;
$custom-light: #ddd9a4;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc97e",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 126
  },
  "hsl": {
    "h": 56.962,
    "s": 44.134,
    "l": 64.902
  },
  "oklch": {
    "l": 0.82217,
    "c": 0.09639,
    "h": 105.7
  },
  "luminance": 0.56259
}

Semantic roles & 50–950 ramp

primary
#CDC97E
secondary
#53569D
accent
#35B72E
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC97E

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

Preview Lab → · Contrast checker → · Palette generator →

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