#CDCA52#CDCA52

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

Color values

HEX#CDCA52
RGBrgb(205, 202, 82)
HSLhsl(59, 55%, 56%)
HSVhsv(59, 60%, 80%)
CMYKcmyk(0%, 1.5%, 60%, 19.6%)
CIE-LABlab(79.52, -14.03, 58.62)
CIE-LCHlch(79.52, 60.28, 103.46°)
OKLaboklab(81.86% -0.0431 0.1342)
OKLCHoklch(81.86% 0.141 107.8)
XYZxyz(47.8219, 55.8308, 16.2383)
Luminance0.5583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA52 #5255CD
analogous
#CD8D52 #CDCA52 #93CD52
triadic
#CDCA52 #52CDCA #CA52CD
tetradic
#CDCA52 #52CD8D #5255CD #CD5293
square
#CDCA52 #52CD8D #5255CD #CD5293
split-complementary
#CDCA52 #5293CD #8D52CD
monochromatic
#807D25 #AFAC33 #CDCA52 #DBD981 #E8E7B1

Accessibility & contrast

On white

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

On black

12.17
#CDCA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCA52
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCA52#FFFFFF#000000##000000
##CDCA521.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdca52;
/* rgb */ color: rgb(205, 202, 82);
/* oklch */ color: oklch(81.9% 0.141 107.8);
Tailwind
colors: {
  custom: {
    50: '#dfd987',
    500: '#cdca52',
    950: '#000000',
  },
}
SCSS
$custom: #cdca52;
$custom-light: #dfd987;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca52",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 82
  },
  "hsl": {
    "h": 58.537,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81858,
    "c": 0.14098,
    "h": 107.8
  },
  "luminance": 0.55829
}

Semantic roles & 50–950 ramp

primary
#CDCA52
secondary
#3C3E87
accent
#4DDE49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDCA52

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

Preview Lab → · Contrast checker → · Palette generator →

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