#CAF871#CAF871

#CAF871 is a very light, vivid yellow-green. Relative luminance 0.809; OKLCH L 92.0% C 0.170 H 125.3°. Best body text is #000000 at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#CAF871
RGBrgb(202, 248, 113)
HSLhsl(80, 91%, 71%)
HSVhsv(80, 54%, 97%)
CMYKcmyk(18.5%, 0%, 54.4%, 2.7%)
CIE-LABlab(92.08, -34.80, 59.13)
CIE-LCHlch(92.08, 68.61, 120.48°)
OKLaboklab(91.97% -0.0983 0.1388)
OKLCHoklch(91.97% 0.17 125.3)
XYZxyz(60.9052, 80.8830, 28.0229)
Luminance0.8088 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAF871 #9F71F8
analogous
#F8E271 #CAF871 #86F871
triadic
#CAF871 #71CAF8 #F871CA
tetradic
#CAF871 #71F8E2 #9F71F8 #F87186
square
#CAF871 #71F8E2 #9F71F8 #F87186
split-complementary
#CAF871 #7186F8 #E271F8
monochromatic
#9AE30B #B4F537 #CAF871 #E0FBAB #F4FEE2

Accessibility & contrast

On white

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

On black

17.18
#CAF871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAF871
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAF871#FFFFFF#000000##000000
##CAF8711.001.2217.1817.18
#FFFFFF1.221.0021.0021.00
#00000017.1821.001.001.00
##00000017.1821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #caf871;
/* rgb */ color: rgb(202, 248, 113);
/* oklch */ color: oklch(92.0% 0.170 125.3);
Tailwind
colors: {
  custom: {
    50: '#ddfa9d',
    500: '#caf871',
    950: '#000000',
  },
}
SCSS
$custom: #caf871;
$custom-light: #ddfa9d;
$custom-dark: #000000;
JSON
{
  "hex": "#caf871",
  "rgb": {
    "r": 202,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 80.444,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.91973,
    "c": 0.17007,
    "h": 125.3
  },
  "luminance": 0.80884
}

Semantic roles & 50–950 ramp

primary
#CAF871
secondary
#6E3AD3
accent
#00E64E
background
#FEFFFC
surface
#FCFFF5
border
#D5D7CF
text
#15170F
muted
#848580

Preview Lab

Preview with #CAF871

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

Preview Lab → · Contrast checker → · Palette generator →

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