#CDC04A#CDC04A

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

Color values

HEX#CDC04A
RGBrgb(205, 192, 74)
HSLhsl(54, 57%, 55%)
HSVhsv(54, 64%, 80%)
CMYKcmyk(0%, 6.3%, 63.9%, 19.6%)
CIE-LABlab(76.78, -9.47, 59.10)
CIE-LCHlch(76.78, 59.85, 99.11°)
OKLaboklab(79.66% -0.031 0.1341)
OKLCHoklch(79.66% 0.138 103)
XYZxyz(45.2643, 51.1746, 13.9706)
Luminance0.5117 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC04A #4A57CD
analogous
#CD7F4A #CDC04A #98CD4A
triadic
#CDC04A #4ACDC0 #C04ACD
tetradic
#CDC04A #4ACD7F #4A57CD #CD4A98
square
#CDC04A #4ACD7F #4A57CD #CD4A98
split-complementary
#CDC04A #4A98CD #7F4ACD
monochromatic
#7B7222 #AB9E2F #CDC04A #DAD17A #E7E1AA

Accessibility & contrast

On white

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

On black

11.23
#CDC04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC04A
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC04A#FFFFFF#000000##000000
##CDC04A1.001.8711.2311.23
#FFFFFF1.871.0021.0021.00
#00000011.2321.001.001.00
##00000011.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA3B
Deuteranopia (green-blind)
#D5C051
Tritanopia (blue-blind)
#DCB3A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #cdc04a;
/* rgb */ color: rgb(205, 192, 74);
/* oklch */ color: oklch(79.7% 0.138 103.0);
Tailwind
colors: {
  custom: {
    50: '#dfd282',
    500: '#cdc04a',
    950: '#000000',
  },
}
SCSS
$custom: #cdc04a;
$custom-light: #dfd282;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc04a",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 54.046,
    "s": 56.71,
    "l": 54.706
  },
  "oklch": {
    "l": 0.79662,
    "c": 0.13764,
    "h": 103
  },
  "luminance": 0.51173
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDC04A

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

Preview Lab → · Contrast checker → · Palette generator →

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