#CAF251#CAF251

#CAF251 is a very light, vivid yellow-green. Relative luminance 0.767; OKLCH L 90.3% C 0.188 H 122.3°. Best body text is #000000 at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#CAF251
RGBrgb(202, 242, 81)
HSLhsl(75, 86%, 63%)
HSVhsv(75, 67%, 95%)
CMYKcmyk(16.5%, 0%, 66.5%, 5.1%)
CIE-LABlab(90.16, -34.49, 70.22)
CIE-LCHlch(90.16, 78.23, 116.16°)
OKLaboklab(90.34% -0.1002 0.1586)
OKLCHoklch(90.34% 0.188 122.3)
XYZxyz(57.5951, 76.6548, 19.5446)
Luminance0.7665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAF251 #7951F2
analogous
#F2C951 #CAF251 #79F251
triadic
#CAF251 #51CAF2 #F251CA
tetradic
#CAF251 #51F2C9 #7951F2 #F25179
square
#CAF251 #51F2C9 #7951F2 #F25179
split-complementary
#CAF251 #5179F2 #C951F2
monochromatic
#90BB0E #B9EE18 #CAF251 #DBF68A #EDFBC3

Accessibility & contrast

On white

1.29
#CAF251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.33
#CAF251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAF251
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAF251#FFFFFF#000000##000000
##CAF2511.001.2916.3316.33
#FFFFFF1.291.0021.0021.00
#00000016.3321.001.001.00
##00000016.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE439
Deuteranopia (green-blind)
#FBE35E
Tritanopia (blue-blind)
#D4E6D2
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #caf251;
/* rgb */ color: rgb(202, 242, 81);
/* oklch */ color: oklch(90.3% 0.188 122.3);
Tailwind
colors: {
  custom: {
    50: '#def68a',
    500: '#caf251',
    950: '#000000',
  },
}
SCSS
$custom: #caf251;
$custom-light: #def68a;
$custom-dark: #000000;
JSON
{
  "hex": "#caf251",
  "rgb": {
    "r": 202,
    "g": 242,
    "b": 81
  },
  "hsl": {
    "h": 74.907,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.9034,
    "c": 0.18766,
    "h": 122.3
  },
  "luminance": 0.76655
}

Semantic roles & 50–950 ramp

primary
#CAF251
secondary
#512EB9
accent
#03E33A
background
#FEFFFC
surface
#FCFEF4
border
#D5D6CE
text
#16170C
muted
#84857F

Preview Lab

Preview with #CAF251

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

Preview Lab → · Contrast checker → · Palette generator →

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