#CDCC51#CDCC51

#CDCC51 is a very light, vivid yellow. Relative luminance 0.568; OKLCH L 82.3% C 0.144 H 108.7°. Best body text is #000000 at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#CDCC51
RGBrgb(205, 204, 81)
HSLhsl(60, 55%, 56%)
HSVhsv(60, 60%, 80%)
CMYKcmyk(0%, 0.5%, 60.5%, 19.6%)
CIE-LABlab(80.04, -15.11, 59.62)
CIE-LCHlch(80.04, 61.51, 104.22°)
OKLaboklab(82.28% -0.0462 0.1362)
OKLCHoklch(82.28% 0.144 108.7)
XYZxyz(48.2564, 56.7603, 16.1968)
Luminance0.5676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCC51 #5152CD
analogous
#CD8E51 #CDCC51 #90CD51
triadic
#CDCC51 #51CDCC #CC51CD
tetradic
#CDCC51 #51CD8E #5152CD #CD5190
square
#CDCC51 #51CD8E #5152CD #CD5190
split-complementary
#CDCC51 #5190CD #8E51CD
monochromatic
#7F7E25 #AFAE32 #CDCC51 #DBDA81 #E8E8B0

Accessibility & contrast

On white

1.70
#CDCC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.35
#CDCC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCC51
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCC51#FFFFFF#000000##000000
##CDCC511.001.7012.3512.35
#FFFFFF1.701.0021.0021.00
#00000012.3521.001.001.00
##00000012.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC442
Deuteranopia (green-blind)
#DDC958
Tritanopia (blue-blind)
#DBC0B2
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdcc51;
/* rgb */ color: rgb(205, 204, 81);
/* oklch */ color: oklch(82.3% 0.144 108.7);
Tailwind
colors: {
  custom: {
    50: '#dfdb87',
    500: '#cdcc51',
    950: '#000000',
  },
}
SCSS
$custom: #cdcc51;
$custom-light: #dfdb87;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcc51",
  "rgb": {
    "r": 205,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 59.516,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.82276,
    "c": 0.14385,
    "h": 108.7
  },
  "luminance": 0.56759
}

Semantic roles & 50–950 ramp

primary
#CDCC51
secondary
#3B3C87
accent
#4ADF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDCC51

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

Preview Lab → · Contrast checker → · Palette generator →

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