#CCF987#CCF987

#CCF987 is a very light, vivid yellow-green. Relative luminance 0.823; OKLCH L 92.6% C 0.150 H 126.8°. Best body text is #000000 at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#CCF987
RGBrgb(204, 249, 135)
HSLhsl(84, 90%, 75%)
HSVhsv(84, 46%, 98%)
CMYKcmyk(18.1%, 0%, 45.8%, 2.4%)
CIE-LABlab(92.72, -32.34, 49.82)
CIE-LCHlch(92.72, 59.40, 122.99°)
OKLaboklab(92.6% -0.0898 0.12)
OKLCHoklch(92.6% 0.15 126.8)
XYZxyz(63.1503, 82.3373, 35.4826)
Luminance0.8234 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCF987 #B487F9
analogous
#F9ED87 #CCF987 #93F987
triadic
#CCF987 #87CCF9 #F987CC
tetradic
#CCF987 #87F9ED #B487F9 #F98793
square
#CCF987 #87F9ED #B487F9 #F98793
split-complementary
#CCF987 #8793F9 #ED87F9
monochromatic
#9AF312 #B3F64D #CCF987 #E5FCC1 #F3FEE2

Accessibility & contrast

On white

1.20
#CCF987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.47
#CCF987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCF987
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCF987#FFFFFF#000000##000000
##CCF9871.001.2017.4717.47
#FFFFFF1.201.0021.0021.00
#00000017.4721.001.001.00
##00000017.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC7E
Deuteranopia (green-blind)
#FDE98D
Tritanopia (blue-blind)
#D2F0DE
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #ccf987;
/* rgb */ color: rgb(204, 249, 135);
/* oklch */ color: oklch(92.6% 0.150 126.8);
Tailwind
colors: {
  custom: {
    50: '#ddfbac',
    500: '#ccf987',
    950: '#000000',
  },
}
SCSS
$custom: #ccf987;
$custom-light: #ddfbac;
$custom-dark: #000000;
JSON
{
  "hex": "#ccf987",
  "rgb": {
    "r": 204,
    "g": 249,
    "b": 135
  },
  "hsl": {
    "h": 83.684,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.92604,
    "c": 0.14991,
    "h": 126.8
  },
  "luminance": 0.82338
}

Semantic roles & 50–950 ramp

primary
#CCF987
secondary
#844DD7
accent
#00E65B
background
#FEFFFD
surface
#FCFFF7
border
#D5D7D0
text
#151710
muted
#848581

Preview Lab

Preview with #CCF987

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

Preview Lab → · Contrast checker → · Palette generator →

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