#CDC052#CDC052

#CDC052 is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.7% C 0.131 H 102.6°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#CDC052
RGBrgb(205, 192, 82)
HSLhsl(54, 55%, 56%)
HSVhsv(54, 60%, 80%)
CMYKcmyk(0%, 6.3%, 60%, 19.6%)
CIE-LABlab(76.85, -8.95, 55.71)
CIE-LCHlch(76.85, 56.42, 99.13°)
OKLaboklab(79.74% -0.0286 0.128)
OKLCHoklch(79.74% 0.131 102.6)
XYZxyz(45.5511, 51.2893, 15.4814)
Luminance0.5129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC052 #525FCD
analogous
#CD8352 #CDC052 #9DCD52
triadic
#CDC052 #52CDC0 #C052CD
tetradic
#CDC052 #52CD83 #525FCD #CD529D
square
#CDC052 #52CD83 #525FCD #CD529D
split-complementary
#CDC052 #529DCD #8352CD
monochromatic
#807625 #AFA233 #CDC052 #DBD181 #E8E3B1

Accessibility & contrast

On white

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

On black

11.26
#CDC052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC052
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC052#FFFFFF#000000##000000
##CDC0521.001.8711.2611.26
#FFFFFF1.871.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA46
Deuteranopia (green-blind)
#D4C058
Tritanopia (blue-blind)
#DBB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cdc052;
/* rgb */ color: rgb(205, 192, 82);
/* oklch */ color: oklch(79.7% 0.131 102.6);
Tailwind
colors: {
  custom: {
    50: '#dfd287',
    500: '#cdc052',
    950: '#000000',
  },
}
SCSS
$custom: #cdc052;
$custom-light: #dfd287;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc052",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 53.659,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.79739,
    "c": 0.13119,
    "h": 102.6
  },
  "luminance": 0.51288
}

Semantic roles & 50–950 ramp

primary
#CDC052
secondary
#3C4487
accent
#59DE49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CDC052

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

Preview Lab → · Contrast checker → · Palette generator →

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