#CDCD87#CDCD87

#CDCD87 is a very light, moderate yellow. Relative luminance 0.584; OKLCH L 83.2% C 0.091 H 108.2°. Best body text is #000000 at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#CDCD87
RGBrgb(205, 205, 135)
HSLhsl(60, 41%, 67%)
HSVhsv(60, 34%, 80%)
CMYKcmyk(0%, 0%, 34.1%, 19.6%)
CIE-LABlab(80.96, -10.60, 34.92)
CIE-LCHlch(80.96, 36.49, 106.89°)
OKLaboklab(83.21% -0.0284 0.0862)
OKLCHoklch(83.21% 0.091 108.2)
XYZxyz(51.3818, 58.3920, 31.4810)
Luminance0.5839 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD87 #8787CD
analogous
#CDAA87 #CDCD87 #AACD87
triadic
#CDCD87 #87CDCD #CD87CD
tetradic
#CDCD87 #87CDAA #8787CD #CD87AA
square
#CDCD87 #87CDAA #8787CD #CD87AA
split-complementary
#CDCD87 #87AACD #AA87CD
monochromatic
#9A9A40 #BBBB5C #CDCD87 #DFDFB2 #F1F1DD

Accessibility & contrast

On white

1.66
#CDCD87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.68
#CDCD87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD87
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD87#FFFFFF#000000##000000
##CDCD871.001.6612.6812.68
#FFFFFF1.661.0021.0021.00
#00000012.6821.001.001.00
##00000012.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C782
Deuteranopia (green-blind)
#D9CA8A
Tritanopia (blue-blind)
#D7C5BB
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cdcd87;
/* rgb */ color: rgb(205, 205, 135);
/* oklch */ color: oklch(83.2% 0.091 108.2);
Tailwind
colors: {
  custom: {
    50: '#dddcaa',
    500: '#cdcd87',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd87;
$custom-light: #dddcaa;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd87",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 135
  },
  "hsl": {
    "h": 60,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.8321,
    "c": 0.0907,
    "h": 108.2
  },
  "luminance": 0.58391
}

Semantic roles & 50–950 ramp

primary
#CDCD87
secondary
#5858A0
accent
#31B431
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151510
muted
#848481

Preview Lab

Preview with #CDCD87

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

Preview Lab → · Contrast checker → · Palette generator →

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