#BAFA97#BAFA97

#BAFA97 is a very light, vivid yellow-green. Relative luminance 0.810; OKLCH L 91.9% C 0.144 H 135.2°. Best body text is #000000 at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#BAFA97
RGBrgb(186, 250, 151)
HSLhsl(99, 91%, 79%)
HSVhsv(99, 40%, 98%)
CMYKcmyk(25.6%, 0%, 39.6%, 2%)
CIE-LABlab(92.15, -37.20, 41.16)
CIE-LCHlch(92.15, 55.48, 132.11°)
OKLaboklab(91.94% -0.1019 0.1013)
OKLCHoklch(91.94% 0.144 135.2)
XYZxyz(60.0198, 81.0429, 41.7527)
Luminance0.8105 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAFA97 #D797FA
analogous
#EBFA97 #BAFA97 #97FAA5
triadic
#BAFA97 #97BAFA #FA97BA
tetradic
#BAFA97 #97EBFA #D797FA #FAA597
square
#BAFA97 #97EBFA #D797FA #FAA597
split-complementary
#BAFA97 #A597FA #FA97EB
monochromatic
#6DF422 #93F75D #BAFA97 #E1FDD1 #ECFEE2

Accessibility & contrast

On white

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

On black

17.21
#BAFA97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAFA97
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAFA97#FFFFFF#000000##000000
##BAFA971.001.2217.2117.21
#FFFFFF1.221.0021.0021.00
#00000017.2121.001.001.00
##00000017.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC90
Deuteranopia (green-blind)
#F7E69D
Tritanopia (blue-blind)
#B9F3E2
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #bafa97;
/* rgb */ color: rgb(186, 250, 151);
/* oklch */ color: oklch(91.9% 0.144 135.2);
Tailwind
colors: {
  custom: {
    50: '#d0fcb7',
    500: '#bafa97',
    950: '#000000',
  },
}
SCSS
$custom: #bafa97;
$custom-light: #d0fcb7;
$custom-dark: #000000;
JSON
{
  "hex": "#bafa97",
  "rgb": {
    "r": 186,
    "g": 250,
    "b": 151
  },
  "hsl": {
    "h": 98.788,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.91937,
    "c": 0.14364,
    "h": 135.2
  },
  "luminance": 0.81045
}

Semantic roles & 50–950 ramp

primary
#BAFA97
secondary
#AD5BDA
accent
#00E694
background
#FEFFFD
surface
#FBFFF8
border
#D4D7D1
text
#141711
muted
#838581

Preview Lab

Preview with #BAFA97

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

Preview Lab → · Contrast checker → · Palette generator →

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