#BAFA76#BAFA76

#BAFA76 is a very light, vivid yellow-green. Relative luminance 0.801; OKLCH L 91.5% C 0.175 H 130.6°. Best body text is #000000 at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#BAFA76
RGBrgb(186, 250, 118)
HSLhsl(89, 93%, 72%)
HSVhsv(89, 53%, 98%)
CMYKcmyk(25.6%, 0%, 52.8%, 2%)
CIE-LABlab(91.74, -41.01, 56.25)
CIE-LCHlch(91.74, 69.61, 126.09°)
OKLaboklab(91.47% -0.1143 0.1332)
OKLCHoklch(91.47% 0.176 130.6)
XYZxyz(57.7047, 80.1169, 29.5599)
Luminance0.8012 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAFA76 #B676FA
analogous
#FAF876 #BAFA76 #78FA76
triadic
#BAFA76 #76BAFA #FA76BA
tetradic
#BAFA76 #76FAF8 #B676FA #FA7678
square
#BAFA76 #76FAF8 #B676FA #FA7678
split-complementary
#BAFA76 #7678FA #F876FA
monochromatic
#7EED09 #9CF83B #BAFA76 #D8FCB1 #F0FEE1

Accessibility & contrast

On white

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

On black

17.02
#BAFA76 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAFA76
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAFA76#FFFFFF#000000##000000
##BAFA761.001.2317.0217.02
#FFFFFF1.231.0021.0021.00
#00000017.0221.001.001.00
##00000017.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA69
Deuteranopia (green-blind)
#FBE67F
Tritanopia (blue-blind)
#BDF1DC
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #bafa76;
/* rgb */ color: rgb(186, 250, 118);
/* oklch */ color: oklch(91.5% 0.175 130.6);
Tailwind
colors: {
  custom: {
    50: '#d1fca1',
    500: '#bafa76',
    950: '#000000',
  },
}
SCSS
$custom: #bafa76;
$custom-light: #d1fca1;
$custom-dark: #000000;
JSON
{
  "hex": "#bafa76",
  "rgb": {
    "r": 186,
    "g": 250,
    "b": 118
  },
  "hsl": {
    "h": 89.091,
    "s": 92.958,
    "l": 72.157
  },
  "oklch": {
    "l": 0.91468,
    "c": 0.1755,
    "h": 130.6
  },
  "luminance": 0.80118
}

Semantic roles & 50–950 ramp

primary
#BAFA76
secondary
#883ED6
accent
#00E66F
background
#FEFFFC
surface
#FBFFF5
border
#D4D7CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAFA76

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

Preview Lab → · Contrast checker → · Palette generator →

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