#CAF987#CAF987

#CAF987 is a very light, vivid yellow-green. Relative luminance 0.821; OKLCH L 92.5% C 0.151 H 127.5°. Best body text is #000000 at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#CAF987
RGBrgb(202, 249, 135)
HSLhsl(85, 90%, 75%)
HSVhsv(85, 46%, 98%)
CMYKcmyk(18.9%, 0%, 45.8%, 2.4%)
CIE-LABlab(92.60, -33.06, 49.64)
CIE-LCHlch(92.60, 59.65, 123.66°)
OKLaboklab(92.47% -0.0917 0.1197)
OKLCHoklch(92.47% 0.151 127.5)
XYZxyz(62.6055, 82.0564, 35.4571)
Luminance0.8206 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAF987 #B687F9
analogous
#F9EF87 #CAF987 #91F987
triadic
#CAF987 #87CAF9 #F987CA
tetradic
#CAF987 #87F9EF #B687F9 #F98791
square
#CAF987 #87F9EF #B687F9 #F98791
split-complementary
#CAF987 #8791F9 #EF87F9
monochromatic
#97F312 #B0F64D #CAF987 #E4FCC1 #F2FEE2

Accessibility & contrast

On white

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

On black

17.41
#CAF987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAF987
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAF987#FFFFFF#000000##000000
##CAF9871.001.2117.4117.41
#FFFFFF1.211.0021.0021.00
#00000017.4121.001.001.00
##00000017.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC7E
Deuteranopia (green-blind)
#FCE98E
Tritanopia (blue-blind)
#CFF0DE
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #caf987;
/* rgb */ color: rgb(202, 249, 135);
/* oklch */ color: oklch(92.5% 0.151 127.5);
Tailwind
colors: {
  custom: {
    50: '#dcfbac',
    500: '#caf987',
    950: '#000000',
  },
}
SCSS
$custom: #caf987;
$custom-light: #dcfbac;
$custom-dark: #000000;
JSON
{
  "hex": "#caf987",
  "rgb": {
    "r": 202,
    "g": 249,
    "b": 135
  },
  "hsl": {
    "h": 84.737,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.92472,
    "c": 0.15078,
    "h": 127.5
  },
  "luminance": 0.82057
}

Semantic roles & 50–950 ramp

primary
#CAF987
secondary
#864DD7
accent
#00E65F
background
#FEFFFD
surface
#FCFFF7
border
#D5D7D0
text
#151710
muted
#848581

Preview Lab

Preview with #CAF987

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

Preview Lab → · Contrast checker → · Palette generator →

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