#CDC04E#CDC04E

#CDC04E 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#CDC04E
RGBrgb(205, 192, 78)
HSLhsl(54, 56%, 55%)
HSVhsv(54, 62%, 80%)
CMYKcmyk(0%, 6.3%, 62%, 19.6%)
CIE-LABlab(76.82, -9.22, 57.42)
CIE-LCHlch(76.82, 58.16, 99.12°)
OKLaboklab(79.7% -0.0298 0.1311)
OKLCHoklch(79.7% 0.134 102.8)
XYZxyz(45.4033, 51.2302, 14.7030)
Luminance0.5123 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC04E #4E5BCD
analogous
#CD804E #CDC04E #9BCD4E
triadic
#CDC04E #4ECDC0 #C04ECD
tetradic
#CDC04E #4ECD80 #4E5BCD #CD4E9B
square
#CDC04E #4ECD80 #4E5BCD #CD4E9B
split-complementary
#CDC04E #4E9BCD #804ECD
monochromatic
#7D7423 #ADA031 #CDC04E #DAD17E #E8E2AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC04E#FFFFFF#000000##000000
##CDC04E1.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)
#D0BA41
Deuteranopia (green-blind)
#D4C054
Tritanopia (blue-blind)
#DCB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc04e;
/* rgb */ color: rgb(205, 192, 78);
/* oklch */ color: oklch(79.7% 0.134 102.8);
Tailwind
colors: {
  custom: {
    50: '#dfd284',
    500: '#cdc04e',
    950: '#000000',
  },
}
SCSS
$custom: #cdc04e;
$custom-light: #dfd284;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc04e",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 53.858,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.79699,
    "c": 0.13449,
    "h": 102.8
  },
  "luminance": 0.51228
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDC04E

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

Preview Lab → · Contrast checker → · Palette generator →

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