#CAF958#CAF958

#CAF958 is a very light, vivid yellow-green. Relative luminance 0.810; OKLCH L 92.0% C 0.191 H 124.1°. Best body text is #000000 at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#CAF958
RGBrgb(202, 249, 88)
HSLhsl(78, 93%, 66%)
HSVhsv(78, 65%, 98%)
CMYKcmyk(18.9%, 0%, 64.7%, 2.4%)
CIE-LABlab(92.14, -37.20, 69.61)
CIE-LCHlch(92.14, 78.93, 118.12°)
OKLaboklab(91.95% -0.1071 0.1583)
OKLCHoklch(91.95% 0.191 124.1)
XYZxyz(59.9947, 81.0120, 21.7068)
Luminance0.8101 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAF958 #8758F9
analogous
#F9D858 #CAF958 #79F958
triadic
#CAF958 #58CAF9 #F958CA
tetradic
#CAF958 #58F9D8 #8758F9 #F95879
square
#CAF958 #58F9D8 #8758F9 #F95879
split-complementary
#CAF958 #5879F9 #D858F9
monochromatic
#95CF07 #B7F71D #CAF958 #DDFB93 #EFFDCE

Accessibility & contrast

On white

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

On black

17.20
#CAF958 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAF958
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAF958#FFFFFF#000000##000000
##CAF9581.001.2217.2017.20
#FFFFFF1.221.0021.0021.00
#00000017.2021.001.001.00
##00000017.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA42
Deuteranopia (green-blind)
#FFE864
Tritanopia (blue-blind)
#D3EDD8
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #caf958;
/* rgb */ color: rgb(202, 249, 88);
/* oklch */ color: oklch(92.0% 0.191 124.1);
Tailwind
colors: {
  custom: {
    50: '#defb8e',
    500: '#caf958',
    950: '#000000',
  },
}
SCSS
$custom: #caf958;
$custom-light: #defb8e;
$custom-dark: #000000;
JSON
{
  "hex": "#caf958",
  "rgb": {
    "r": 202,
    "g": 249,
    "b": 88
  },
  "hsl": {
    "h": 77.516,
    "s": 93.064,
    "l": 66.078
  },
  "oklch": {
    "l": 0.9195,
    "c": 0.19115,
    "h": 124.1
  },
  "luminance": 0.81013
}

Semantic roles & 50–950 ramp

primary
#CAF958
secondary
#592BCA
accent
#00E643
background
#FEFFFC
surface
#FCFFF4
border
#D5D7CE
text
#15170D
muted
#84857F

Preview Lab

Preview with #CAF958

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

Preview Lab → · Contrast checker → · Palette generator →

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