#CCE787#CCE787

#CCE787 is a very light, vivid yellow-green. Relative luminance 0.717; OKLCH L 88.7% C 0.125 H 121.8°. Best body text is #000000 at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#CCE787
RGBrgb(204, 231, 135)
HSLhsl(77, 67%, 72%)
HSVhsv(77, 42%, 91%)
CMYKcmyk(11.7%, 0%, 41.6%, 9.4%)
CIE-LABlab(87.84, -23.86, 43.73)
CIE-LCHlch(87.84, 49.82, 118.62°)
OKLaboklab(88.69% -0.066 0.1063)
OKLCHoklch(88.69% 0.125 121.8)
XYZxyz(57.8509, 71.7384, 33.7162)
Luminance0.7174 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCE787 #A287E7
analogous
#E7D287 #CCE787 #9CE787
triadic
#CCE787 #87CCE7 #E787CC
tetradic
#CCE787 #87E7D2 #A287E7 #E7879C
square
#CCE787 #87E7D2 #A287E7 #E7879C
split-complementary
#CCE787 #879CE7 #D287E7
monochromatic
#9DCB29 #B6DD54 #CCE787 #E2F1BA #F4FAE5

Accessibility & contrast

On white

1.37
#CCE787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.35
#CCE787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCE787
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCE787#FFFFFF#000000##000000
##CCE7871.001.3715.3515.35
#FFFFFF1.371.0021.0021.00
#00000015.3521.001.001.00
##00000015.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DD80
Deuteranopia (green-blind)
#EEDC8C
Tritanopia (blue-blind)
#D3DED0
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #cce787;
/* rgb */ color: rgb(204, 231, 135);
/* oklch */ color: oklch(88.7% 0.125 121.8);
Tailwind
colors: {
  custom: {
    50: '#ddeeab',
    500: '#cce787',
    950: '#000000',
  },
}
SCSS
$custom: #cce787;
$custom-light: #ddeeab;
$custom-dark: #000000;
JSON
{
  "hex": "#cce787",
  "rgb": {
    "r": 204,
    "g": 231,
    "b": 135
  },
  "hsl": {
    "h": 76.875,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.88685,
    "c": 0.12516,
    "h": 121.8
  },
  "luminance": 0.71738
}

Semantic roles & 50–950 ramp

primary
#CCE787
secondary
#7152C0
accent
#17CF4B
background
#FEFFFD
surface
#FCFEF7
border
#D5D6D0
text
#151610
muted
#848581

Preview Lab

Preview with #CCE787

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

Preview Lab → · Contrast checker → · Palette generator →

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