#BAFA78#BAFA78

#BAFA78 is a very light, vivid yellow-green. Relative luminance 0.802; OKLCH L 91.5% C 0.174 H 130.8°. Best body text is #000000 at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#BAFA78
RGBrgb(186, 250, 120)
HSLhsl(90, 93%, 73%)
HSVhsv(90, 52%, 98%)
CMYKcmyk(25.6%, 0%, 52%, 2%)
CIE-LABlab(91.76, -40.81, 55.37)
CIE-LCHlch(91.76, 68.78, 126.39°)
OKLaboklab(91.49% -0.1136 0.1314)
OKLCHoklch(91.49% 0.174 130.8)
XYZxyz(57.8248, 80.1649, 30.1925)
Luminance0.8017 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAFA78 #B878FA
analogous
#FAF978 #BAFA78 #79FA78
triadic
#BAFA78 #78BAFA #FA78BA
tetradic
#BAFA78 #78FAF9 #B878FA #FA7879
square
#BAFA78 #78FAF9 #B878FA #FA7879
split-complementary
#BAFA78 #7879FA #F978FA
monochromatic
#7EEF09 #9CF83D #BAFA78 #D8FCB3 #F0FEE1

Accessibility & contrast

On white

1.23
#BAFA78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.03
#BAFA78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAFA78
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAFA78#FFFFFF#000000##000000
##BAFA781.001.2317.0317.03
#FFFFFF1.231.0021.0021.00
#00000017.0321.001.001.00
##00000017.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA6C
Deuteranopia (green-blind)
#FAE680
Tritanopia (blue-blind)
#BDF1DD
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #bafa78;
/* rgb */ color: rgb(186, 250, 120);
/* oklch */ color: oklch(91.5% 0.174 130.8);
Tailwind
colors: {
  custom: {
    50: '#d1fca2',
    500: '#bafa78',
    950: '#000000',
  },
}
SCSS
$custom: #bafa78;
$custom-light: #d1fca2;
$custom-dark: #000000;
JSON
{
  "hex": "#bafa78",
  "rgb": {
    "r": 186,
    "g": 250,
    "b": 120
  },
  "hsl": {
    "h": 89.538,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.91493,
    "c": 0.17371,
    "h": 130.8
  },
  "luminance": 0.80166
}

Semantic roles & 50–950 ramp

primary
#BAFA78
secondary
#8A40D6
accent
#00E671
background
#FEFFFC
surface
#FBFFF6
border
#D4D7D0
text
#14170F
muted
#838580

Preview Lab

Preview with #BAFA78

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

Preview Lab → · Contrast checker → · Palette generator →

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