#CDCD52#CDCD52

#CDCD52 is a very light, vivid yellow. Relative luminance 0.573; OKLCH L 82.5% C 0.144 H 109.2°. Best body text is #000000 at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#CDCD52
RGBrgb(205, 205, 82)
HSLhsl(60, 55%, 56%)
HSVhsv(60, 60%, 80%)
CMYKcmyk(0%, 0%, 60%, 19.6%)
CIE-LABlab(80.32, -15.54, 59.50)
CIE-LCHlch(80.32, 61.49, 104.64°)
OKLaboklab(82.5% -0.0473 0.1361)
OKLCHoklch(82.5% 0.144 109.2)
XYZxyz(48.5326, 57.2523, 16.4753)
Luminance0.5725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD52 #5252CD
analogous
#CD9052 #CDCD52 #90CD52
triadic
#CDCD52 #52CDCD #CD52CD
tetradic
#CDCD52 #52CD90 #5252CD #CD5290
square
#CDCD52 #52CD90 #5252CD #CD5290
split-complementary
#CDCD52 #5290CD #9052CD
monochromatic
#808025 #AFAF33 #CDCD52 #DBDB81 #E8E8B1

Accessibility & contrast

On white

1.69
#CDCD52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.45
#CDCD52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD52
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD52#FFFFFF#000000##000000
##CDCD521.001.6912.4512.45
#FFFFFF1.691.0021.0021.00
#00000012.4521.001.001.00
##00000012.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC544
Deuteranopia (green-blind)
#DEC959
Tritanopia (blue-blind)
#DAC1B3
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cdcd52;
/* rgb */ color: rgb(205, 205, 82);
/* oklch */ color: oklch(82.5% 0.144 109.2);
Tailwind
colors: {
  custom: {
    50: '#dfdc88',
    500: '#cdcd52',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd52;
$custom-light: #dfdc88;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd52",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.82499,
    "c": 0.14409,
    "h": 109.2
  },
  "luminance": 0.57251
}

Semantic roles & 50–950 ramp

primary
#CDCD52
secondary
#3C3C87
accent
#49DE49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CDCD52

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

Preview Lab → · Contrast checker → · Palette generator →

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