#CAF951#CAF951

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

Color values

HEX#CAF951
RGBrgb(202, 249, 81)
HSLhsl(77, 93%, 65%)
HSVhsv(77, 67%, 98%)
CMYKcmyk(18.9%, 0%, 67.5%, 2.4%)
CIE-LABlab(92.09, -37.65, 72.19)
CIE-LCHlch(92.09, 81.42, 117.54°)
OKLaboklab(91.89% -0.109 0.1628)
OKLCHoklch(91.89% 0.196 123.8)
XYZxyz(59.7186, 80.9016, 20.2524)
Luminance0.8090 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAF951 #8051F9
analogous
#F9D451 #CAF951 #76F951
triadic
#CAF951 #51CAF9 #F951CA
tetradic
#CAF951 #51F9D4 #8051F9 #F95176
square
#CAF951 #51F9D4 #8051F9 #F95176
split-complementary
#CAF951 #5176F9 #D451F9
monochromatic
#92C907 #B8F716 #CAF951 #DCFB8C #EEFDC7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAF951#FFFFFF#000000##000000
##CAF9511.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)
#FFEA37
Deuteranopia (green-blind)
#FFE85F
Tritanopia (blue-blind)
#D3EDD7
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #caf951;
/* rgb */ color: rgb(202, 249, 81);
/* oklch */ color: oklch(91.9% 0.196 123.8);
Tailwind
colors: {
  custom: {
    50: '#defb8b',
    500: '#caf951',
    950: '#000000',
  },
}
SCSS
$custom: #caf951;
$custom-light: #defb8b;
$custom-dark: #000000;
JSON
{
  "hex": "#caf951",
  "rgb": {
    "r": 202,
    "g": 249,
    "b": 81
  },
  "hsl": {
    "h": 76.786,
    "s": 93.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.91894,
    "c": 0.19589,
    "h": 123.8
  },
  "luminance": 0.80902
}

Semantic roles & 50–950 ramp

primary
#CAF951
secondary
#5529C5
accent
#00E640
background
#FEFFFC
surface
#FCFFF4
border
#D5D7CE
text
#16170C
muted
#84857F

Preview Lab

Preview with #CAF951

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

Preview Lab → · Contrast checker → · Palette generator →

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