#CCF871#CCF871

#CCF871 is a very light, vivid yellow-green. Relative luminance 0.812; OKLCH L 92.1% C 0.169 H 124.7°. Best body text is #000000 at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#CCF871
RGBrgb(204, 248, 113)
HSLhsl(80, 91%, 71%)
HSVhsv(80, 54%, 97%)
CMYKcmyk(17.7%, 0%, 54.4%, 2.7%)
CIE-LABlab(92.20, -34.05, 59.30)
CIE-LCHlch(92.20, 68.39, 119.87°)
OKLaboklab(92.11% -0.0963 0.1392)
OKLCHoklch(92.11% 0.169 124.7)
XYZxyz(61.4500, 81.1639, 28.0484)
Luminance0.8116 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCF871 #9D71F8
analogous
#F8E171 #CCF871 #88F871
triadic
#CCF871 #71CCF8 #F871CC
tetradic
#CCF871 #71F8E1 #9D71F8 #F87188
square
#CCF871 #71F8E1 #9D71F8 #F87188
split-complementary
#CCF871 #7188F8 #E171F8
monochromatic
#9DE30B #B7F537 #CCF871 #E1FBAB #F5FEE2

Accessibility & contrast

On white

1.22
#CCF871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.23
#CCF871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCF871
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCF871#FFFFFF#000000##000000
##CCF8711.001.2217.2317.23
#FFFFFF1.221.0021.0021.00
#00000017.2321.001.001.00
##00000017.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA64
Deuteranopia (green-blind)
#FEE87A
Tritanopia (blue-blind)
#D4EDDA
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ccf871;
/* rgb */ color: rgb(204, 248, 113);
/* oklch */ color: oklch(92.1% 0.169 124.7);
Tailwind
colors: {
  custom: {
    50: '#defa9d',
    500: '#ccf871',
    950: '#000000',
  },
}
SCSS
$custom: #ccf871;
$custom-light: #defa9d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccf871",
  "rgb": {
    "r": 204,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 79.556,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.92106,
    "c": 0.16924,
    "h": 124.7
  },
  "luminance": 0.81164
}

Semantic roles & 50–950 ramp

primary
#CCF871
secondary
#6C3AD3
accent
#00E64B
background
#FEFFFC
surface
#FCFFF5
border
#D5D7CF
text
#15170F
muted
#848580

Preview Lab

Preview with #CCF871

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

Preview Lab → · Contrast checker → · Palette generator →

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