#CDC04C#CDC04C

#CDC04C is a light, vivid yellow. Relative luminance 0.512; OKLCH L 79.7% C 0.136 H 102.9°. Best body text is #000000 at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#CDC04C
RGBrgb(205, 192, 76)
HSLhsl(54, 56%, 55%)
HSVhsv(54, 63%, 80%)
CMYKcmyk(0%, 6.3%, 62.9%, 19.6%)
CIE-LABlab(76.80, -9.35, 58.27)
CIE-LCHlch(76.80, 59.01, 99.12°)
OKLaboklab(79.68% -0.0304 0.1326)
OKLCHoklch(79.68% 0.136 102.9)
XYZxyz(45.3327, 51.2020, 14.3311)
Luminance0.5120 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC04C #4C59CD
analogous
#CD7F4C #CDC04C #9ACD4C
triadic
#CDC04C #4CCDC0 #C04CCD
tetradic
#CDC04C #4CCD7F #4C59CD #CD4C9A
square
#CDC04C #4CCD7F #4C59CD #CD4C9A
split-complementary
#CDC04C #4C9ACD #7F4CCD
monochromatic
#7C7323 #AC9F30 #CDC04C #DAD17C #E8E2AC

Accessibility & contrast

On white

1.87
#CDC04C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.24
#CDC04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC04C
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC04C#FFFFFF#000000##000000
##CDC04C1.001.8711.2411.24
#FFFFFF1.871.0021.0021.00
#00000011.2421.001.001.00
##00000011.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA3E
Deuteranopia (green-blind)
#D4C053
Tritanopia (blue-blind)
#DCB3A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc04c;
/* rgb */ color: rgb(205, 192, 76);
/* oklch */ color: oklch(79.7% 0.136 102.9);
Tailwind
colors: {
  custom: {
    50: '#dfd283',
    500: '#cdc04c',
    950: '#000000',
  },
}
SCSS
$custom: #cdc04c;
$custom-light: #dfd283;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc04c",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 53.953,
    "s": 56.332,
    "l": 55.098
  },
  "oklch": {
    "l": 0.7968,
    "c": 0.13609,
    "h": 102.9
  },
  "luminance": 0.512
}

Semantic roles & 50–950 ramp

primary
#CDC04C
secondary
#394184
accent
#57E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC04C

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

Preview Lab → · Contrast checker → · Palette generator →

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