#CDCA51#CDCA51

#CDCA51 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.8% C 0.142 H 107.8°. Best body text is #000000 at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#CDCA51
RGBrgb(205, 202, 81)
HSLhsl(59, 55%, 56%)
HSVhsv(59, 60%, 80%)
CMYKcmyk(0%, 1.5%, 60.5%, 19.6%)
CIE-LABlab(79.51, -14.10, 59.04)
CIE-LCHlch(79.51, 60.70, 103.43°)
OKLaboklab(81.85% -0.0434 0.135)
OKLCHoklch(81.85% 0.142 107.8)
XYZxyz(47.7841, 55.8157, 16.0394)
Luminance0.5581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA51 #5154CD
analogous
#CD8C51 #CDCA51 #92CD51
triadic
#CDCA51 #51CDCA #CA51CD
tetradic
#CDCA51 #51CD8C #5154CD #CD5192
square
#CDCA51 #51CD8C #5154CD #CD5192
split-complementary
#CDCA51 #5192CD #8C51CD
monochromatic
#7F7D25 #AFAC32 #CDCA51 #DBD881 #E8E7B0

Accessibility & contrast

On white

1.73
#CDCA51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.16
#CDCA51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCA51
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCA51#FFFFFF#000000##000000
##CDCA511.001.7312.1612.16
#FFFFFF1.731.0021.0021.00
#00000012.1621.001.001.00
##00000012.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC243
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#DBBEB0
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdca51;
/* rgb */ color: rgb(205, 202, 81);
/* oklch */ color: oklch(81.8% 0.142 107.8);
Tailwind
colors: {
  custom: {
    50: '#dfd987',
    500: '#cdca51',
    950: '#000000',
  },
}
SCSS
$custom: #cdca51;
$custom-light: #dfd987;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca51",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 81
  },
  "hsl": {
    "h": 58.548,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81848,
    "c": 0.14179,
    "h": 107.8
  },
  "luminance": 0.55814
}

Semantic roles & 50–950 ramp

primary
#CDCA51
secondary
#3B3D87
accent
#4DDF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDCA51

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

Preview Lab → · Contrast checker → · Palette generator →

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