#CDCD96#CDCD96

#CDCD96 is a very light, moderate yellow. Relative luminance 0.588; OKLCH L 83.5% C 0.073 H 107.9°. Best body text is #000000 at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#CDCD96
RGBrgb(205, 205, 150)
HSLhsl(60, 35%, 70%)
HSVhsv(60, 27%, 80%)
CMYKcmyk(0%, 0%, 26.8%, 19.6%)
CIE-LABlab(81.21, -8.71, 27.48)
CIE-LCHlch(81.21, 28.83, 107.59°)
OKLaboklab(83.49% -0.0223 0.0691)
OKLCHoklch(83.49% 0.073 107.9)
XYZxyz(52.5133, 58.8446, 37.4400)
Luminance0.5884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD96 #9696CD
analogous
#CDB296 #CDCD96 #B2CD96
triadic
#CDCD96 #96CDCD #CD96CD
tetradic
#CDCD96 #96CDB2 #9696CD #CD96B2
square
#CDCD96 #96CDB2 #9696CD #CD96B2
split-complementary
#CDCD96 #96B2CD #B296CD
monochromatic
#9E9E4B #B9B96D #CDCD96 #E1E1BF #F4F4E9

Accessibility & contrast

On white

1.64
#CDCD96 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.77
#CDCD96 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD96
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD96#FFFFFF#000000##000000
##CDCD961.001.6412.7712.77
#FFFFFF1.641.0021.0021.00
#00000012.7721.001.001.00
##00000012.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C892
Deuteranopia (green-blind)
#D7CB98
Tritanopia (blue-blind)
#D5C6BE
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #cdcd96;
/* rgb */ color: rgb(205, 205, 150);
/* oklch */ color: oklch(83.5% 0.073 107.9);
Tailwind
colors: {
  custom: {
    50: '#dddcb5',
    500: '#cdcd96',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd96;
$custom-light: #dddcb5;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd96",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 150
  },
  "hsl": {
    "h": 60,
    "s": 35.484,
    "l": 69.608
  },
  "oklch": {
    "l": 0.8349,
    "c": 0.07255,
    "h": 107.9
  },
  "luminance": 0.58844
}

Semantic roles & 50–950 ramp

primary
#CDCD96
secondary
#6565A2
accent
#37AE37
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151511
muted
#848481

Preview Lab

Preview with #CDCD96

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

Preview Lab → · Contrast checker → · Palette generator →

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