#CAF271#CAF271

#CAF271 is a very light, vivid yellow-green. Relative luminance 0.773; OKLCH L 90.6% C 0.162 H 123.9°. Best body text is #000000 at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#CAF271
RGBrgb(202, 242, 113)
HSLhsl(79, 83%, 70%)
HSVhsv(79, 53%, 95%)
CMYKcmyk(16.5%, 0%, 53.3%, 5.1%)
CIE-LABlab(90.44, -32.04, 57.22)
CIE-LCHlch(90.44, 65.58, 119.25°)
OKLaboklab(90.65% -0.0906 0.1347)
OKLCHoklch(90.65% 0.162 123.9)
XYZxyz(59.0901, 77.2527, 27.4178)
Luminance0.7725 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAF271 #9971F2
analogous
#F2DA71 #CAF271 #89F271
triadic
#CAF271 #71CAF2 #F271CA
tetradic
#CAF271 #71F2DA #9971F2 #F27189
square
#CAF271 #71F2DA #9971F2 #F27189
split-complementary
#CAF271 #7189F2 #DA71F2
monochromatic
#99D514 #B5ED39 #CAF271 #DFF7A9 #F4FCE1

Accessibility & contrast

On white

1.28
#CAF271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.45
#CAF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAF271
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAF271#FFFFFF#000000##000000
##CAF2711.001.2816.4516.45
#FFFFFF1.281.0021.0021.00
#00000016.4521.001.001.00
##00000016.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #caf271;
/* rgb */ color: rgb(202, 242, 113);
/* oklch */ color: oklch(90.6% 0.162 123.9);
Tailwind
colors: {
  custom: {
    50: '#dcf69d',
    500: '#caf271',
    950: '#000000',
  },
}
SCSS
$custom: #caf271;
$custom-light: #dcf69d;
$custom-dark: #000000;
JSON
{
  "hex": "#caf271",
  "rgb": {
    "r": 202,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 78.605,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.9065,
    "c": 0.16231,
    "h": 123.9
  },
  "luminance": 0.77253
}

Semantic roles & 50–950 ramp

primary
#CAF271
secondary
#683CCB
accent
#06E049
background
#FEFFFC
surface
#FCFEF5
border
#D5D6CF
text
#15170F
muted
#848580

Preview Lab

Preview with #CAF271

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

Preview Lab → · Contrast checker → · Palette generator →

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