#CCF87C#CCF87C

#CCF87C is a very light, vivid yellow-green. Relative luminance 0.814; OKLCH L 92.2% C 0.159 H 125.5°. Best body text is #000000 at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#CCF87C
RGBrgb(204, 248, 124)
HSLhsl(81, 90%, 73%)
HSVhsv(81, 50%, 97%)
CMYKcmyk(17.7%, 0%, 50%, 2.7%)
CIE-LABlab(92.32, -33.02, 54.47)
CIE-LCHlch(92.32, 63.70, 121.22°)
OKLaboklab(92.24% -0.0925 0.1296)
OKLCHoklch(92.24% 0.159 125.5)
XYZxyz(62.1072, 81.4268, 31.5098)
Luminance0.8143 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCF87C #A87CF8
analogous
#F8E67C #CCF87C #8EF87C
triadic
#CCF87C #7CCCF8 #F87CCC
tetradic
#CCF87C #7CF8E6 #A87CF8 #F87C8E
square
#CCF87C #7CF8E6 #A87CF8 #F87C8E
split-complementary
#CCF87C #7C8EF8 #E67CF8
monochromatic
#9DED0D #B5F542 #CCF87C #E3FBB6 #F4FDE2

Accessibility & contrast

On white

1.21
#CCF87C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.29
#CCF87C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCF87C
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCF87C#FFFFFF#000000##000000
##CCF87C1.001.2117.2917.29
#FFFFFF1.211.0021.0021.00
#00000017.2921.001.001.00
##00000017.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB71
Deuteranopia (green-blind)
#FDE883
Tritanopia (blue-blind)
#D3EEDC
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ccf87c;
/* rgb */ color: rgb(204, 248, 124);
/* oklch */ color: oklch(92.2% 0.159 125.5);
Tailwind
colors: {
  custom: {
    50: '#defaa5',
    500: '#ccf87c',
    950: '#000000',
  },
}
SCSS
$custom: #ccf87c;
$custom-light: #defaa5;
$custom-dark: #000000;
JSON
{
  "hex": "#ccf87c",
  "rgb": {
    "r": 204,
    "g": 248,
    "b": 124
  },
  "hsl": {
    "h": 81.29,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.92238,
    "c": 0.15923,
    "h": 125.5
  },
  "luminance": 0.81427
}

Semantic roles & 50–950 ramp

primary
#CCF87C
secondary
#7744D4
accent
#00E651
background
#FEFFFC
surface
#FCFFF6
border
#D5D7D0
text
#15170F
muted
#848580

Preview Lab

Preview with #CCF87C

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

Preview Lab → · Contrast checker → · Palette generator →

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