#CCD252#CCD252

#CCD252 is a very light, vivid yellow. Relative luminance 0.595; OKLCH L 83.5% C 0.150 H 111.8°. Best body text is #000000 at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#CCD252
RGBrgb(204, 210, 82)
HSLhsl(63, 59%, 57%)
HSVhsv(63, 61%, 82%)
CMYKcmyk(2.9%, 0%, 61%, 17.6%)
CIE-LABlab(81.59, -18.43, 60.84)
CIE-LCHlch(81.59, 63.57, 106.86°)
OKLaboklab(83.49% -0.0555 0.139)
OKLCHoklch(83.49% 0.15 111.8)
XYZxyz(49.4728, 59.5409, 16.8674)
Luminance0.5954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD252 #5852D2
analogous
#D29852 #CCD252 #8CD252
triadic
#CCD252 #52CCD2 #D252CC
tetradic
#CCD252 #52D298 #5852D2 #D2528C
square
#CCD252 #52D298 #5852D2 #D2528C
split-complementary
#CCD252 #528CD2 #9852D2
monochromatic
#828723 #B1B730 #CCD252 #DADF83 #E9EBB3

Accessibility & contrast

On white

1.63
#CCD252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.91
#CCD252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD252
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD252#FFFFFF#000000##000000
##CCD2521.001.6312.9112.91
#FFFFFF1.631.0021.0021.00
#00000012.9121.001.001.00
##00000012.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccd252;
/* rgb */ color: rgb(204, 210, 82);
/* oklch */ color: oklch(83.5% 0.150 111.8);
Tailwind
colors: {
  custom: {
    50: '#dedf88',
    500: '#ccd252',
    950: '#000000',
  },
}
SCSS
$custom: #ccd252;
$custom-light: #dedf88;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd252",
  "rgb": {
    "r": 204,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 62.813,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.83491,
    "c": 0.14962,
    "h": 111.8
  },
  "luminance": 0.5954
}

Semantic roles & 50–950 ramp

primary
#CCD252
secondary
#3F3B8D
accent
#46E24D
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#15150C
muted
#84847F

Preview Lab

Preview with #CCD252

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

Preview Lab → · Contrast checker → · Palette generator →

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