#CDCC52#CDCC52

#CDCC52 is a very light, vivid yellow. Relative luminance 0.568; OKLCH L 82.3% C 0.143 H 108.7°. Best body text is #000000 at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#CDCC52
RGBrgb(205, 204, 82)
HSLhsl(60, 55%, 56%)
HSVhsv(60, 60%, 80%)
CMYKcmyk(0%, 0.5%, 60%, 19.6%)
CIE-LABlab(80.05, -15.04, 59.21)
CIE-LCHlch(80.05, 61.09, 104.25°)
OKLaboklab(82.29% -0.0459 0.1355)
OKLCHoklch(82.29% 0.143 108.7)
XYZxyz(48.2942, 56.7754, 16.3958)
Luminance0.5677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCC52 #5253CD
analogous
#CD8F52 #CDCC52 #91CD52
triadic
#CDCC52 #52CDCC #CC52CD
tetradic
#CDCC52 #52CD8F #5253CD #CD5291
square
#CDCC52 #52CD8F #5253CD #CD5291
split-complementary
#CDCC52 #5291CD #8F52CD
monochromatic
#807F25 #AFAE33 #CDCC52 #DBDA81 #E8E8B1

Accessibility & contrast

On white

1.70
#CDCC52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.35
#CDCC52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCC52
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCC52#FFFFFF#000000##000000
##CDCC521.001.7012.3512.35
#FFFFFF1.701.0021.0021.00
#00000012.3521.001.001.00
##00000012.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC444
Deuteranopia (green-blind)
#DDC959
Tritanopia (blue-blind)
#DBC0B2
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #cdcc52;
/* rgb */ color: rgb(205, 204, 82);
/* oklch */ color: oklch(82.3% 0.143 108.7);
Tailwind
colors: {
  custom: {
    50: '#dfdb88',
    500: '#cdcc52',
    950: '#000000',
  },
}
SCSS
$custom: #cdcc52;
$custom-light: #dfdb88;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcc52",
  "rgb": {
    "r": 205,
    "g": 204,
    "b": 82
  },
  "hsl": {
    "h": 59.512,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.82285,
    "c": 0.14304,
    "h": 108.7
  },
  "luminance": 0.56774
}

Semantic roles & 50–950 ramp

primary
#CDCC52
secondary
#3C3D87
accent
#4BDE49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDCC52

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

Preview Lab → · Contrast checker → · Palette generator →

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