#CDC896#CDC896

#CDC896 is a very light, moderate yellow. Relative luminance 0.565; OKLCH L 82.5% C 0.066 H 103.0°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#CDC896
RGBrgb(205, 200, 150)
HSLhsl(55, 35%, 70%)
HSVhsv(55, 27%, 80%)
CMYKcmyk(0%, 2.4%, 26.8%, 19.6%)
CIE-LABlab(79.89, -6.14, 25.71)
CIE-LCHlch(79.89, 26.43, 103.43°)
OKLaboklab(82.45% -0.0149 0.0648)
OKLCHoklch(82.45% 0.066 103)
XYZxyz(51.3363, 56.4906, 37.0477)
Luminance0.5649 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC896 #969BCD
analogous
#CDAC96 #CDC896 #B7CD96
triadic
#CDC896 #96CDC8 #C896CD
tetradic
#CDC896 #96CDAC #969BCD #CD96B7
square
#CDC896 #96CDAC #969BCD #CD96B7
split-complementary
#CDC896 #96B7CD #AC96CD
monochromatic
#9E964B #B9B26D #CDC896 #E1DEBF #F4F3E9

Accessibility & contrast

On white

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

On black

12.30
#CDC896 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC896
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC896#FFFFFF#000000##000000
##CDC8961.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1C493
Deuteranopia (green-blind)
#D3C798
Tritanopia (blue-blind)
#D5C1BB
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdc896;
/* rgb */ color: rgb(205, 200, 150);
/* oklch */ color: oklch(82.5% 0.066 103.0);
Tailwind
colors: {
  custom: {
    50: '#ddd8b5',
    500: '#cdc896',
    950: '#000000',
  },
}
SCSS
$custom: #cdc896;
$custom-light: #ddd8b5;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc896",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 150
  },
  "hsl": {
    "h": 54.545,
    "s": 35.484,
    "l": 69.608
  },
  "oklch": {
    "l": 0.8245,
    "c": 0.06649,
    "h": 103
  },
  "luminance": 0.5649
}

Semantic roles & 50–950 ramp

primary
#CDC896
secondary
#656BA2
accent
#42AE37
background
#FEFEFD
surface
#FCFBF8
border
#D5D4D1
text
#151411
muted
#848381

Preview Lab

Preview with #CDC896

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

Preview Lab → · Contrast checker → · Palette generator →

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