#CAF252#CAF252

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

Color values

HEX#CAF252
RGBrgb(202, 242, 82)
HSLhsl(75, 86%, 64%)
HSVhsv(75, 66%, 95%)
CMYKcmyk(16.5%, 0%, 66.1%, 5.1%)
CIE-LABlab(90.17, -34.43, 69.85)
CIE-LCHlch(90.17, 77.87, 116.24°)
OKLaboklab(90.35% -0.1 0.158)
OKLCHoklch(90.35% 0.187 122.3)
XYZxyz(57.6329, 76.6699, 19.7435)
Luminance0.7667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAF252 #7A52F2
analogous
#F2CA52 #CAF252 #7AF252
triadic
#CAF252 #52CAF2 #F252CA
tetradic
#CAF252 #52F2CA #7A52F2 #F2527A
square
#CAF252 #52F2CA #7A52F2 #F2527A
split-complementary
#CAF252 #527AF2 #CA52F2
monochromatic
#90BC0E #B9EE19 #CAF252 #DBF68B #EDFBC4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CAF252#FFFFFF#000000##000000
##CAF2521.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)
#FFE43B
Deuteranopia (green-blind)
#FBE35E
Tritanopia (blue-blind)
#D4E6D2
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #caf252;
/* rgb */ color: rgb(202, 242, 82);
/* oklch */ color: oklch(90.3% 0.187 122.3);
Tailwind
colors: {
  custom: {
    50: '#def68b',
    500: '#caf252',
    950: '#000000',
  },
}
SCSS
$custom: #caf252;
$custom-light: #def68b;
$custom-dark: #000000;
JSON
{
  "hex": "#caf252",
  "rgb": {
    "r": 202,
    "g": 242,
    "b": 82
  },
  "hsl": {
    "h": 75,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.90348,
    "c": 0.18698,
    "h": 122.3
  },
  "luminance": 0.7667
}

Semantic roles & 50–950 ramp

primary
#CAF252
secondary
#512EBA
accent
#03E33B
background
#FEFFFC
surface
#FCFEF4
border
#D5D6CE
text
#15170C
muted
#84857F

Preview Lab

Preview with #CAF252

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

Preview Lab → · Contrast checker → · Palette generator →

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