#CAF798#CAF798

#CAF798 is a very light, vivid yellow-green. Relative luminance 0.813; OKLCH L 92.3% C 0.130 H 129.3°. Best body text is #000000 at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#CAF798
RGBrgb(202, 247, 152)
HSLhsl(88, 86%, 78%)
HSVhsv(88, 38%, 97%)
CMYKcmyk(18.2%, 0%, 38.5%, 3.1%)
CIE-LABlab(92.28, -30.14, 41.03)
CIE-LCHlch(92.28, 50.91, 126.30°)
OKLaboklab(92.29% -0.0826 0.1009)
OKLCHoklch(92.29% 0.13 129.3)
XYZxyz(63.2845, 81.3442, 42.0666)
Luminance0.8135 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAF798 #C598F7
analogous
#F7F498 #CAF798 #9AF798
triadic
#CAF798 #98CAF7 #F798CA
tetradic
#CAF798 #98F7F4 #C598F7 #F7989A
square
#CAF798 #98F7F4 #C598F7 #F7989A
split-complementary
#CAF798 #989AF7 #F498F7
monochromatic
#90EE26 #ADF35F #CAF798 #E7FBD1 #F0FDE3

Accessibility & contrast

On white

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

On black

17.27
#CAF798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAF798
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAF798#FFFFFF#000000##000000
##CAF7981.001.2217.2717.27
#FFFFFF1.221.0021.0021.00
#00000017.2721.001.001.00
##00000017.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB91
Deuteranopia (green-blind)
#F9E89D
Tritanopia (blue-blind)
#CEEFDF
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #caf798;
/* rgb */ color: rgb(202, 247, 152);
/* oklch */ color: oklch(92.3% 0.130 129.3);
Tailwind
colors: {
  custom: {
    50: '#dbfab7',
    500: '#caf798',
    950: '#000000',
  },
}
SCSS
$custom: #caf798;
$custom-light: #dbfab7;
$custom-dark: #000000;
JSON
{
  "hex": "#caf798",
  "rgb": {
    "r": 202,
    "g": 247,
    "b": 152
  },
  "hsl": {
    "h": 88.421,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.92294,
    "c": 0.13043,
    "h": 129.3
  },
  "luminance": 0.81345
}

Semantic roles & 50–950 ramp

primary
#CAF798
secondary
#965DD6
accent
#03E26D
background
#FEFFFD
surface
#FCFFF8
border
#D5D7D1
text
#151711
muted
#848581

Preview Lab

Preview with #CAF798

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

Preview Lab → · Contrast checker → · Palette generator →

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