#CDC04F#CDC04F

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

Color values

HEX#CDC04F
RGBrgb(205, 192, 79)
HSLhsl(54, 56%, 56%)
HSVhsv(54, 61%, 80%)
CMYKcmyk(0%, 6.3%, 61.5%, 19.6%)
CIE-LABlab(76.83, -9.15, 57.00)
CIE-LCHlch(76.83, 57.73, 99.12°)
OKLaboklab(79.71% -0.0295 0.1304)
OKLCHoklch(79.71% 0.134 102.8)
XYZxyz(45.4395, 51.2447, 14.8933)
Luminance0.5124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC04F #4F5CCD
analogous
#CD814F #CDC04F #9BCD4F
triadic
#CDC04F #4FCDC0 #C04FCD
tetradic
#CDC04F #4FCD81 #4F5CCD #CD4F9B
square
#CDC04F #4FCD81 #4F5CCD #CD4F9B
split-complementary
#CDC04F #4F9BCD #814FCD
monochromatic
#7E7524 #AEA131 #CDC04F #DBD17F #E8E2AE

Accessibility & contrast

On white

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

On black

11.25
#CDC04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC04F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC04F#FFFFFF#000000##000000
##CDC04F1.001.8711.2511.25
#FFFFFF1.871.0021.0021.00
#00000011.2521.001.001.00
##00000011.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA42
Deuteranopia (green-blind)
#D4C055
Tritanopia (blue-blind)
#DCB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc04f;
/* rgb */ color: rgb(205, 192, 79);
/* oklch */ color: oklch(79.7% 0.134 102.8);
Tailwind
colors: {
  custom: {
    50: '#dfd285',
    500: '#cdc04f',
    950: '#000000',
  },
}
SCSS
$custom: #cdc04f;
$custom-light: #dfd285;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc04f",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 53.81,
    "s": 55.752,
    "l": 55.686
  },
  "oklch": {
    "l": 0.79709,
    "c": 0.13368,
    "h": 102.8
  },
  "luminance": 0.51243
}

Semantic roles & 50–950 ramp

primary
#CDC04F
secondary
#3B4286
accent
#58DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC04F

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

Preview Lab → · Contrast checker → · Palette generator →

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