#CCD152#CCD152

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

Color values

HEX#CCD152
RGBrgb(204, 209, 82)
HSLhsl(62, 58%, 57%)
HSVhsv(62, 61%, 82%)
CMYKcmyk(2.4%, 0%, 60.8%, 18%)
CIE-LABlab(81.32, -17.94, 60.55)
CIE-LCHlch(81.32, 63.15, 106.50°)
OKLaboklab(83.28% -0.0541 0.1383)
OKLCHoklch(83.28% 0.149 111.3)
XYZxyz(49.2266, 59.0486, 16.7854)
Luminance0.5905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD152 #5752D1
analogous
#D19752 #CCD152 #8DD152
triadic
#CCD152 #52CCD1 #D152CC
tetradic
#CCD152 #52D197 #5752D1 #D1528D
square
#CCD152 #52D197 #5752D1 #D1528D
split-complementary
#CCD152 #528DD1 #9752D1
monochromatic
#818523 #B0B630 #CCD152 #DADE82 #E9EBB3

Accessibility & contrast

On white

1.64
#CCD152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.81
#CCD152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD152
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD152#FFFFFF#000000##000000
##CCD1521.001.6412.8112.81
#FFFFFF1.641.0021.0021.00
#00000012.8121.001.001.00
##00000012.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C843
Deuteranopia (green-blind)
#E1CC5A
Tritanopia (blue-blind)
#D9C5B6
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #ccd152;
/* rgb */ color: rgb(204, 209, 82);
/* oklch */ color: oklch(83.3% 0.149 111.3);
Tailwind
colors: {
  custom: {
    50: '#dede88',
    500: '#ccd152',
    950: '#000000',
  },
}
SCSS
$custom: #ccd152;
$custom-light: #dede88;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd152",
  "rgb": {
    "r": 204,
    "g": 209,
    "b": 82
  },
  "hsl": {
    "h": 62.362,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83276,
    "c": 0.14853,
    "h": 111.3
  },
  "luminance": 0.59047
}

Semantic roles & 50–950 ramp

primary
#CCD152
secondary
#3E3B8C
accent
#47E14D
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#15150C
muted
#84847F

Preview Lab

Preview with #CCD152

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

Preview Lab → · Contrast checker → · Palette generator →

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