#CDD252#CDD252

#CDD252 is a very light, vivid yellow. Relative luminance 0.597; OKLCH L 83.6% C 0.149 H 111.3°. Best body text is #000000 at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#CDD252
RGBrgb(205, 210, 82)
HSLhsl(62, 59%, 57%)
HSVhsv(62, 61%, 82%)
CMYKcmyk(2.4%, 0%, 61%, 17.6%)
CIE-LABlab(81.67, -18.02, 60.95)
CIE-LCHlch(81.67, 63.56, 106.47°)
OKLaboklab(83.57% -0.0544 0.1392)
OKLCHoklch(83.57% 0.149 111.3)
XYZxyz(49.7478, 59.6827, 16.8803)
Luminance0.5968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD252 #5752D2
analogous
#D29752 #CDD252 #8DD252
triadic
#CDD252 #52CDD2 #D252CD
tetradic
#CDD252 #52D297 #5752D2 #D2528D
square
#CDD252 #52D297 #5752D2 #D2528D
split-complementary
#CDD252 #528DD2 #9752D2
monochromatic
#838723 #B2B730 #CDD252 #DBDF83 #E9EBB3

Accessibility & contrast

On white

1.62
#CDD252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.94
#CDD252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD252
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD252#FFFFFF#000000##000000
##CDD2521.001.6212.9412.94
#FFFFFF1.621.0021.0021.00
#00000012.9421.001.001.00
##00000012.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C943
Deuteranopia (green-blind)
#E2CD5A
Tritanopia (blue-blind)
#DAC6B7
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #cdd252;
/* rgb */ color: rgb(205, 210, 82);
/* oklch */ color: oklch(83.6% 0.149 111.3);
Tailwind
colors: {
  custom: {
    50: '#dfdf88',
    500: '#cdd252',
    950: '#000000',
  },
}
SCSS
$custom: #cdd252;
$custom-light: #dfdf88;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd252",
  "rgb": {
    "r": 205,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 62.344,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.83572,
    "c": 0.1494,
    "h": 111.3
  },
  "luminance": 0.59682
}

Semantic roles & 50–950 ramp

primary
#CDD252
secondary
#3E3B8D
accent
#46E24C
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #CDD252

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

Preview Lab → · Contrast checker → · Palette generator →

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