#CDCD7B#CDCD7B

#CDCD7B is a very light, moderate yellow. Relative luminance 0.581; OKLCH L 83.0% C 0.104 H 108.5°. Best body text is #000000 at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#CDCD7B
RGBrgb(205, 205, 123)
HSLhsl(60, 45%, 64%)
HSVhsv(60, 40%, 80%)
CMYKcmyk(0%, 0%, 40%, 19.6%)
CIE-LABlab(80.78, -11.96, 40.78)
CIE-LCHlch(80.78, 42.50, 106.35°)
OKLaboklab(83.01% -0.0331 0.099)
OKLCHoklch(83.01% 0.104 108.5)
XYZxyz(50.5841, 58.0729, 27.2796)
Luminance0.5807 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD7B #7B7BCD
analogous
#CDA47B #CDCD7B #A4CD7B
triadic
#CDCD7B #7BCDCD #CD7BCD
tetradic
#CDCD7B #7BCDA4 #7B7BCD #CD7BA4
square
#CDCD7B #7BCDA4 #7B7BCD #CD7BA4
split-complementary
#CDCD7B #7BA4CD #A47BCD
monochromatic
#959538 #BCBC4F #CDCD7B #DEDEA7 #EFEFD4

Accessibility & contrast

On white

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

On black

12.61
#CDCD7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD7B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD7B#FFFFFF#000000##000000
##CDCD7B1.001.6612.6112.61
#FFFFFF1.661.0021.0021.00
#00000012.6121.001.001.00
##00000012.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C775
Deuteranopia (green-blind)
#DACA7F
Tritanopia (blue-blind)
#D8C4B9
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cdcd7b;
/* rgb */ color: rgb(205, 205, 123);
/* oklch */ color: oklch(83.0% 0.104 108.5);
Tailwind
colors: {
  custom: {
    50: '#dddca2',
    500: '#cdcd7b',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd7b;
$custom-light: #dddca2;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd7b",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 123
  },
  "hsl": {
    "h": 60,
    "s": 45.055,
    "l": 64.314
  },
  "oklch": {
    "l": 0.83012,
    "c": 0.10441,
    "h": 108.5
  },
  "luminance": 0.58072
}

Semantic roles & 50–950 ramp

primary
#CDCD7B
secondary
#51519B
accent
#2DB82D
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150F
muted
#848480

Preview Lab

Preview with #CDCD7B

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

Preview Lab → · Contrast checker → · Palette generator →

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