#CDCD8E#CDCD8E

#CDCD8E is a very light, moderate yellow. Relative luminance 0.586; OKLCH L 83.3% C 0.082 H 108.1°. Best body text is #000000 at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#CDCD8E
RGBrgb(205, 205, 142)
HSLhsl(60, 39%, 68%)
HSVhsv(60, 31%, 80%)
CMYKcmyk(0%, 0%, 30.7%, 19.6%)
CIE-LABlab(81.07, -9.75, 31.46)
CIE-LCHlch(81.07, 32.93, 107.22°)
OKLaboklab(83.34% -0.0255 0.0783)
OKLCHoklch(83.34% 0.082 108.1)
XYZxyz(51.8909, 58.5956, 34.1625)
Luminance0.5859 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD8E #8E8ECD
analogous
#CDAD8E #CDCD8E #ADCD8E
triadic
#CDCD8E #8ECDCD #CD8ECD
tetradic
#CDCD8E #8ECDAD #8E8ECD #CD8EAD
square
#CDCD8E #8ECDAD #8E8ECD #CD8EAD
split-complementary
#CDCD8E #8EADCD #AD8ECD
monochromatic
#9C9C45 #BABA64 #CDCD8E #E0E0B8 #F3F3E3

Accessibility & contrast

On white

1.65
#CDCD8E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.72
#CDCD8E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD8E
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD8E#FFFFFF#000000##000000
##CDCD8E1.001.6512.7212.72
#FFFFFF1.651.0021.0021.00
#00000012.7221.001.001.00
##00000012.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C88A
Deuteranopia (green-blind)
#D8CB91
Tritanopia (blue-blind)
#D6C5BD
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cdcd8e;
/* rgb */ color: rgb(205, 205, 142);
/* oklch */ color: oklch(83.3% 0.082 108.1);
Tailwind
colors: {
  custom: {
    50: '#dddcaf',
    500: '#cdcd8e',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd8e;
$custom-light: #dddcaf;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd8e",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 142
  },
  "hsl": {
    "h": 60,
    "s": 38.65,
    "l": 68.039
  },
  "oklch": {
    "l": 0.83336,
    "c": 0.08236,
    "h": 108.1
  },
  "luminance": 0.58595
}

Semantic roles & 50–950 ramp

primary
#CDCD8E
secondary
#5D5DA2
accent
#34B234
background
#FEFEFD
surface
#FCFBF7
border
#D5D4D0
text
#151510
muted
#848481

Preview Lab

Preview with #CDCD8E

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

Preview Lab → · Contrast checker → · Palette generator →

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