#CCE271#CCE271

#CCE271 is a very light, vivid yellow-green. Relative luminance 0.684; OKLCH L 87.3% C 0.141 H 118.5°. Best body text is #000000 at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#CCE271
RGBrgb(204, 226, 113)
HSLhsl(72, 66%, 66%)
HSVhsv(72, 50%, 89%)
CMYKcmyk(9.7%, 0%, 50%, 11.4%)
CIE-LABlab(86.22, -23.74, 52.28)
CIE-LCHlch(86.22, 57.41, 114.42°)
OKLaboklab(87.29% -0.0674 0.1239)
OKLCHoklch(87.29% 0.141 118.5)
XYZxyz(55.0794, 68.4227, 25.9249)
Luminance0.6842 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCE271 #8771E2
analogous
#E2C071 #CCE271 #94E271
triadic
#CCE271 #71CCE2 #E271CC
tetradic
#CCE271 #71E2C0 #8771E2 #E27194
square
#CCE271 #71E2C0 #8771E2 #E27194
split-complementary
#CCE271 #7194E2 #C071E2
monochromatic
#98B425 #BAD83E #CCE271 #DEECA4 #F1F7D7

Accessibility & contrast

On white

1.43
#CCE271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.68
#CCE271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCE271
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCE271#FFFFFF#000000##000000
##CCE2711.001.4314.6814.68
#FFFFFF1.431.0021.0021.00
#00000014.6821.001.001.00
##00000014.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED867
Deuteranopia (green-blind)
#ECD877
Tritanopia (blue-blind)
#D6D8C8
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #cce271;
/* rgb */ color: rgb(204, 226, 113);
/* oklch */ color: oklch(87.3% 0.141 118.5);
Tailwind
colors: {
  custom: {
    50: '#ddeb9c',
    500: '#cce271',
    950: '#000000',
  },
}
SCSS
$custom: #cce271;
$custom-light: #ddeb9c;
$custom-dark: #000000;
JSON
{
  "hex": "#cce271",
  "rgb": {
    "r": 204,
    "g": 226,
    "b": 113
  },
  "hsl": {
    "h": 71.681,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.87294,
    "c": 0.14104,
    "h": 118.5
  },
  "luminance": 0.68422
}

Semantic roles & 50–950 ramp

primary
#CCE271
secondary
#5942B5
accent
#18CE3B
background
#FEFEFC
surface
#FCFDF5
border
#D5D5CF
text
#15160E
muted
#84847F

Preview Lab

Preview with #CCE271

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

Preview Lab → · Contrast checker → · Palette generator →

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