#CCF271#CCF271

#CCF271 is a very light, vivid yellow-green. Relative luminance 0.775; OKLCH L 90.8% C 0.162 H 123.3°. Best body text is #000000 at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#CCF271
RGBrgb(204, 242, 113)
HSLhsl(78, 83%, 70%)
HSVhsv(78, 53%, 95%)
CMYKcmyk(15.7%, 0%, 53.3%, 5.1%)
CIE-LABlab(90.57, -31.29, 57.40)
CIE-LCHlch(90.57, 65.38, 118.60°)
OKLaboklab(90.79% -0.0886 0.1351)
OKLCHoklch(90.79% 0.162 123.3)
XYZxyz(59.6349, 77.5336, 27.4433)
Luminance0.7753 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCF271 #9771F2
analogous
#F2D771 #CCF271 #8CF271
triadic
#CCF271 #71CCF2 #F271CC
tetradic
#CCF271 #71F2D7 #9771F2 #F2718C
square
#CCF271 #71F2D7 #9771F2 #F2718C
split-complementary
#CCF271 #718CF2 #D771F2
monochromatic
#9CD514 #B8ED39 #CCF271 #E0F7A9 #F4FCE1

Accessibility & contrast

On white

1.27
#CCF271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.51
#CCF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCF271
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCF271#FFFFFF#000000##000000
##CCF2711.001.2716.5116.51
#FFFFFF1.271.0021.0021.00
#00000016.5121.001.001.00
##00000016.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE564
Deuteranopia (green-blind)
#F9E479
Tritanopia (blue-blind)
#D4E8D5
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #ccf271;
/* rgb */ color: rgb(204, 242, 113);
/* oklch */ color: oklch(90.8% 0.162 123.3);
Tailwind
colors: {
  custom: {
    50: '#def69d',
    500: '#ccf271',
    950: '#000000',
  },
}
SCSS
$custom: #ccf271;
$custom-light: #def69d;
$custom-dark: #000000;
JSON
{
  "hex": "#ccf271",
  "rgb": {
    "r": 204,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 77.674,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.90787,
    "c": 0.16152,
    "h": 123.3
  },
  "luminance": 0.77534
}

Semantic roles & 50–950 ramp

primary
#CCF271
secondary
#663CCB
accent
#06E046
background
#FEFFFC
surface
#FCFEF5
border
#D5D6CF
text
#15170F
muted
#848580

Preview Lab

Preview with #CCF271

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

Preview Lab → · Contrast checker → · Palette generator →

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