#CDC04D#CDC04D

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

Color values

HEX#CDC04D
RGBrgb(205, 192, 77)
HSLhsl(54, 56%, 55%)
HSVhsv(54, 62%, 80%)
CMYKcmyk(0%, 6.3%, 62.4%, 19.6%)
CIE-LABlab(76.81, -9.29, 57.85)
CIE-LCHlch(76.81, 58.59, 99.12°)
OKLaboklab(79.69% -0.0301 0.1319)
OKLCHoklch(79.69% 0.135 102.9)
XYZxyz(45.3677, 51.2160, 14.5157)
Luminance0.5121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC04D #4D5ACD
analogous
#CD804D #CDC04D #9ACD4D
triadic
#CDC04D #4DCDC0 #C04DCD
tetradic
#CDC04D #4DCD80 #4D5ACD #CD4D9A
square
#CDC04D #4DCD80 #4D5ACD #CD4D9A
split-complementary
#CDC04D #4D9ACD #804DCD
monochromatic
#7D7323 #ACA030 #CDC04D #DAD17D #E8E2AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC04D#FFFFFF#000000##000000
##CDC04D1.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)
#D0BA3F
Deuteranopia (green-blind)
#D4C053
Tritanopia (blue-blind)
#DCB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc04d;
/* rgb */ color: rgb(205, 192, 77);
/* oklch */ color: oklch(79.7% 0.135 102.9);
Tailwind
colors: {
  custom: {
    50: '#dfd284',
    500: '#cdc04d',
    950: '#000000',
  },
}
SCSS
$custom: #cdc04d;
$custom-light: #dfd284;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc04d",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 53.906,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.79689,
    "c": 0.13529,
    "h": 102.9
  },
  "luminance": 0.51214
}

Semantic roles & 50–950 ramp

primary
#CDC04D
secondary
#3A4184
accent
#58DF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC04D

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

Preview Lab → · Contrast checker → · Palette generator →

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