#CDCC39#CDCC39

#CDCC39 is a very light, vivid yellow. Relative luminance 0.565; OKLCH L 82.1% C 0.160 H 109.1°. Best body text is #000000 at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#CDCC39
RGBrgb(205, 204, 57)
HSLhsl(60, 60%, 51%)
HSVhsv(60, 72%, 80%)
CMYKcmyk(0%, 0.5%, 72.2%, 19.6%)
CIE-LABlab(79.88, -16.45, 68.71)
CIE-LCHlch(79.88, 70.65, 103.46°)
OKLaboklab(82.09% -0.0524 0.1516)
OKLCHoklch(82.09% 0.16 109.1)
XYZxyz(47.5100, 56.4617, 12.2657)
Luminance0.5646 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCC39 #393ACD
analogous
#CD8239 #CDCC39 #84CD39
triadic
#CDCC39 #39CDCC #CC39CD
tetradic
#CDCC39 #39CD82 #393ACD #CD3984
square
#CDCC39 #39CD82 #393ACD #CD3984
split-complementary
#CDCC39 #3984CD #8239CD
monochromatic
#6F6F1C #A0A028 #CDCC39 #D9D96A #E6E59B

Accessibility & contrast

On white

1.71
#CDCC39 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.29
#CDCC39 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCC39
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCC39#FFFFFF#000000##000000
##CDCC391.001.7112.2912.29
#FFFFFF1.711.0021.0021.00
#00000012.2921.001.001.00
##00000012.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC31C
Deuteranopia (green-blind)
#DFC844
Tritanopia (blue-blind)
#DCBFB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdcc39;
/* rgb */ color: rgb(205, 204, 57);
/* oklch */ color: oklch(82.1% 0.160 109.1);
Tailwind
colors: {
  custom: {
    50: '#e0db7a',
    500: '#cdcc39',
    950: '#000000',
  },
}
SCSS
$custom: #cdcc39;
$custom-light: #e0db7a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcc39",
  "rgb": {
    "r": 205,
    "g": 204,
    "b": 57
  },
  "hsl": {
    "h": 59.595,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.82087,
    "c": 0.16039,
    "h": 109.1
  },
  "luminance": 0.5646
}

Semantic roles & 50–950 ramp

primary
#CDCC39
secondary
#323279
accent
#46E345
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDCC39

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

Preview Lab → · Contrast checker → · Palette generator →

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