#CCE152#CCE152

#CCE152 is a very light, vivid yellow. Relative luminance 0.673; OKLCH L 86.7% C 0.166 H 117.1°. Best body text is #000000 at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#CCE152
RGBrgb(204, 225, 82)
HSLhsl(69, 70%, 60%)
HSVhsv(69, 64%, 88%)
CMYKcmyk(9.3%, 0%, 63.6%, 11.8%)
CIE-LABlab(85.65, -25.71, 65.17)
CIE-LCHlch(85.65, 70.06, 111.53°)
OKLaboklab(86.75% -0.0759 0.1481)
OKLCHoklch(86.75% 0.166 117.1)
XYZxyz(53.3511, 67.2976, 18.1602)
Luminance0.6730 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCE152 #6752E1
analogous
#E1AE52 #CCE152 #85E152
triadic
#CCE152 #52CCE1 #E152CC
tetradic
#CCE152 #52E1AE #6752E1 #E15285
square
#CCE152 #52E1AE #6752E1 #E15285
split-complementary
#CCE152 #5285E1 #AE52E1
monochromatic
#8A9D1B #B8D124 #CCE152 #DBEA86 #EBF3BA

Accessibility & contrast

On white

1.45
#CCE152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.46
#CCE152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCE152
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCE152#FFFFFF#000000##000000
##CCE1521.001.4514.4614.46
#FFFFFF1.451.0021.0021.00
#00000014.4621.001.001.00
##00000014.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD63F
Deuteranopia (green-blind)
#EDD75C
Tritanopia (blue-blind)
#D8D5C4
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #cce152;
/* rgb */ color: rgb(204, 225, 82);
/* oklch */ color: oklch(86.7% 0.166 117.1);
Tailwind
colors: {
  custom: {
    50: '#dfea89',
    500: '#cce152',
    950: '#000000',
  },
}
SCSS
$custom: #cce152;
$custom-light: #dfea89;
$custom-dark: #000000;
JSON
{
  "hex": "#cce152",
  "rgb": {
    "r": 204,
    "g": 225,
    "b": 82
  },
  "hsl": {
    "h": 68.811,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.86748,
    "c": 0.16642,
    "h": 117.1
  },
  "luminance": 0.67297
}

Semantic roles & 50–950 ramp

primary
#CCE152
secondary
#4637A1
accent
#13D22F
background
#FEFEFC
surface
#FCFDF4
border
#D5D5CE
text
#16160C
muted
#84847F

Preview Lab

Preview with #CCE152

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

Preview Lab → · Contrast checker → · Palette generator →

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