#CAFA78#CAFA78

#CAFA78 is a very light, vivid yellow-green. Relative luminance 0.823; OKLCH L 92.5% C 0.166 H 126.3°. Best body text is #000000 at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#CAFA78
RGBrgb(202, 250, 120)
HSLhsl(82, 93%, 73%)
HSVhsv(82, 52%, 98%)
CMYKcmyk(19.2%, 0%, 52%, 2%)
CIE-LABlab(92.70, -35.06, 56.72)
CIE-LCHlch(92.70, 66.68, 121.72°)
OKLaboklab(92.5% -0.0984 0.1342)
OKLCHoklch(92.5% 0.166 126.3)
XYZxyz(61.9328, 82.2831, 30.3850)
Luminance0.8228 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAFA78 #A878FA
analogous
#FAE978 #CAFA78 #89FA78
triadic
#CAFA78 #78CAFA #FA78CA
tetradic
#CAFA78 #78FAE9 #A878FA #FA7889
square
#CAFA78 #78FAE9 #A878FA #FA7889
split-complementary
#CAFA78 #7889FA #E978FA
monochromatic
#9AEF09 #B3F83D #CAFA78 #E1FCB3 #F3FEE1

Accessibility & contrast

On white

1.20
#CAFA78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.46
#CAFA78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAFA78
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAFA78#FFFFFF#000000##000000
##CAFA781.001.2017.4617.46
#FFFFFF1.201.0021.0021.00
#00000017.4621.001.001.00
##00000017.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC6C
Deuteranopia (green-blind)
#FFE980
Tritanopia (blue-blind)
#D1F0DD
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #cafa78;
/* rgb */ color: rgb(202, 250, 120);
/* oklch */ color: oklch(92.5% 0.166 126.3);
Tailwind
colors: {
  custom: {
    50: '#dcfca2',
    500: '#cafa78',
    950: '#000000',
  },
}
SCSS
$custom: #cafa78;
$custom-light: #dcfca2;
$custom-dark: #000000;
JSON
{
  "hex": "#cafa78",
  "rgb": {
    "r": 202,
    "g": 250,
    "b": 120
  },
  "hsl": {
    "h": 82.154,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.92497,
    "c": 0.16642,
    "h": 126.3
  },
  "luminance": 0.82284
}

Semantic roles & 50–950 ramp

primary
#CAFA78
secondary
#7740D6
accent
#00E655
background
#FEFFFC
surface
#FCFFF6
border
#D5D7D0
text
#15170F
muted
#848580

Preview Lab

Preview with #CAFA78

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

Preview Lab → · Contrast checker → · Palette generator →

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