#CAF971#CAF971

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

Color values

HEX#CAF971
RGBrgb(202, 249, 113)
HSLhsl(81, 92%, 71%)
HSVhsv(81, 55%, 98%)
CMYKcmyk(18.9%, 0%, 54.6%, 2.4%)
CIE-LABlab(92.35, -35.25, 59.44)
CIE-LCHlch(92.35, 69.11, 120.67°)
OKLaboklab(92.19% -0.0995 0.1395)
OKLCHoklch(92.19% 0.171 125.5)
XYZxyz(61.2135, 81.4995, 28.1256)
Luminance0.8150 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAF971 #A071F9
analogous
#F9E471 #CAF971 #86F971
triadic
#CAF971 #71CAF9 #F971CA
tetradic
#CAF971 #71F9E4 #A071F9 #F97186
square
#CAF971 #71F9E4 #A071F9 #F97186
split-complementary
#CAF971 #7186F9 #E471F9
monochromatic
#9AE60A #B4F736 #CAF971 #E0FBAC #F4FEE2

Accessibility & contrast

On white

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

On black

17.30
#CAF971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAF971
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAF971#FFFFFF#000000##000000
##CAF9711.001.2117.3017.30
#FFFFFF1.211.0021.0021.00
#00000017.3021.001.001.00
##00000017.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #caf971;
/* rgb */ color: rgb(202, 249, 113);
/* oklch */ color: oklch(92.2% 0.171 125.5);
Tailwind
colors: {
  custom: {
    50: '#ddfb9e',
    500: '#caf971',
    950: '#000000',
  },
}
SCSS
$custom: #caf971;
$custom-light: #ddfb9e;
$custom-dark: #000000;
JSON
{
  "hex": "#caf971",
  "rgb": {
    "r": 202,
    "g": 249,
    "b": 113
  },
  "hsl": {
    "h": 80.735,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.92194,
    "c": 0.17136,
    "h": 125.5
  },
  "luminance": 0.815
}

Semantic roles & 50–950 ramp

primary
#CAF971
secondary
#6F3AD4
accent
#00E64F
background
#FEFFFC
surface
#FCFFF5
border
#D5D7CF
text
#15170F
muted
#848580

Preview Lab

Preview with #CAF971

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

Preview Lab → · Contrast checker → · Palette generator →

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