#CCE251#CCE251

#CCE251 is a very light, vivid yellow. Relative luminance 0.678; OKLCH L 87.0% C 0.168 H 117.4°. Best body text is #000000 at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#CCE251
RGBrgb(204, 226, 81)
HSLhsl(69, 71%, 60%)
HSVhsv(69, 64%, 89%)
CMYKcmyk(9.7%, 0%, 64.2%, 11.4%)
CIE-LABlab(85.92, -26.25, 65.85)
CIE-LCHlch(85.92, 70.89, 111.74°)
OKLaboklab(86.96% -0.0775 0.1494)
OKLCHoklch(86.96% 0.168 117.4)
XYZxyz(53.5845, 67.8247, 18.0516)
Luminance0.6782 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCE251 #6751E2
analogous
#E2AF51 #CCE251 #84E251
triadic
#CCE251 #51CCE2 #E251CC
tetradic
#CCE251 #51E2AF #6751E2 #E25184
square
#CCE251 #51E2AF #6751E2 #E25184
split-complementary
#CCE251 #5184E2 #AF51E2
monochromatic
#8A9E1A #B8D323 #CCE251 #DBEB85 #EBF3BA

Accessibility & contrast

On white

1.44
#CCE251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.56
#CCE251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCE251
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCE251#FFFFFF#000000##000000
##CCE2511.001.4414.5614.56
#FFFFFF1.441.0021.0021.00
#00000014.5621.001.001.00
##00000014.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D63E
Deuteranopia (green-blind)
#EED85B
Tritanopia (blue-blind)
#D8D6C4
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #cce251;
/* rgb */ color: rgb(204, 226, 81);
/* oklch */ color: oklch(87.0% 0.168 117.4);
Tailwind
colors: {
  custom: {
    50: '#dfeb89',
    500: '#cce251',
    950: '#000000',
  },
}
SCSS
$custom: #cce251;
$custom-light: #dfeb89;
$custom-dark: #000000;
JSON
{
  "hex": "#cce251",
  "rgb": {
    "r": 204,
    "g": 226,
    "b": 81
  },
  "hsl": {
    "h": 69.103,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.86958,
    "c": 0.1683,
    "h": 117.4
  },
  "luminance": 0.67824
}

Semantic roles & 50–950 ramp

primary
#CCE251
secondary
#4636A1
accent
#12D32F
background
#FEFEFC
surface
#FCFDF4
border
#D5D5CE
text
#16160C
muted
#84847F

Preview Lab

Preview with #CCE251

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

Preview Lab → · Contrast checker → · Palette generator →

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