#CDCD72#CDCD72

#CDCD72 is a very light, moderate yellow. Relative luminance 0.579; OKLCH L 82.9% C 0.114 H 108.7°. Best body text is #000000 at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#CDCD72
RGBrgb(205, 205, 114)
HSLhsl(60, 48%, 63%)
HSVhsv(60, 44%, 80%)
CMYKcmyk(0%, 0%, 44.4%, 19.6%)
CIE-LABlab(80.66, -12.88, 45.09)
CIE-LCHlch(80.66, 46.90, 105.95°)
OKLaboklab(82.88% -0.0365 0.1082)
OKLCHoklch(82.88% 0.114 108.7)
XYZxyz(50.0464, 57.8578, 24.4477)
Luminance0.5786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD72 #7272CD
analogous
#CD9F72 #CDCD72 #9FCD72
triadic
#CDCD72 #72CDCD #CD72CD
tetradic
#CDCD72 #72CD9F #7272CD #CD729F
square
#CDCD72 #72CD9F #7272CD #CD729F
split-complementary
#CDCD72 #729FCD #9F72CD
monochromatic
#919133 #BDBD45 #CDCD72 #DDDD9F #EDEDCC

Accessibility & contrast

On white

1.67
#CDCD72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.57
#CDCD72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD72
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD72#FFFFFF#000000##000000
##CDCD721.001.6712.5712.57
#FFFFFF1.671.0021.0021.00
#00000012.5721.001.001.00
##00000012.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC66A
Deuteranopia (green-blind)
#DBCA76
Tritanopia (blue-blind)
#D8C3B7
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cdcd72;
/* rgb */ color: rgb(205, 205, 114);
/* oklch */ color: oklch(82.9% 0.114 108.7);
Tailwind
colors: {
  custom: {
    50: '#dedc9c',
    500: '#cdcd72',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd72;
$custom-light: #dedc9c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd72",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 114
  },
  "hsl": {
    "h": 60,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.82878,
    "c": 0.11415,
    "h": 108.7
  },
  "luminance": 0.57857
}

Semantic roles & 50–950 ramp

primary
#CDCD72
secondary
#4C4C97
accent
#2BBB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #CDCD72

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

Preview Lab → · Contrast checker → · Palette generator →

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