#BAF97B#BAF97B

#BAF97B is a very light, vivid yellow-green. Relative luminance 0.796; OKLCH L 91.3% C 0.170 H 131.0°. Best body text is #000000 at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#BAF97B
RGBrgb(186, 249, 123)
HSLhsl(90, 91%, 73%)
HSVhsv(90, 51%, 98%)
CMYKcmyk(25.3%, 0%, 50.6%, 2.4%)
CIE-LABlab(91.51, -40.06, 53.71)
CIE-LCHlch(91.51, 67.00, 126.72°)
OKLaboklab(91.31% -0.1113 0.128)
OKLCHoklch(91.31% 0.17 131)
XYZxyz(57.6998, 79.6191, 31.0631)
Luminance0.7962 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF97B #BA7BF9
analogous
#F9F97B #BAF97B #7BF97B
triadic
#BAF97B #7BBAF9 #F97BBA
tetradic
#BAF97B #7BF9F9 #BA7BF9 #F97B7B
square
#BAF97B #7BF9F9 #BA7BF9 #F97B7B
split-complementary
#BAF97B #7B7BF9 #F97BF9
monochromatic
#7DEF0B #9BF640 #BAF97B #D9FCB6 #F0FEE2

Accessibility & contrast

On white

1.24
#BAF97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.92
#BAF97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF97B
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF97B#FFFFFF#000000##000000
##BAF97B1.001.2416.9216.92
#FFFFFF1.241.0021.0021.00
#00000016.9221.001.001.00
##00000016.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA70
Deuteranopia (green-blind)
#F9E583
Tritanopia (blue-blind)
#BDF0DC
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #baf97b;
/* rgb */ color: rgb(186, 249, 123);
/* oklch */ color: oklch(91.3% 0.170 131.0);
Tailwind
colors: {
  custom: {
    50: '#d1fba4',
    500: '#baf97b',
    950: '#000000',
  },
}
SCSS
$custom: #baf97b;
$custom-light: #d1fba4;
$custom-dark: #000000;
JSON
{
  "hex": "#baf97b",
  "rgb": {
    "r": 186,
    "g": 249,
    "b": 123
  },
  "hsl": {
    "h": 90,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.91305,
    "c": 0.16962,
    "h": 131
  },
  "luminance": 0.79621
}

Semantic roles & 50–950 ramp

primary
#BAF97B
secondary
#8C43D6
accent
#00E673
background
#FEFFFC
surface
#FBFFF6
border
#D4D7D0
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF97B

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

Preview Lab → · Contrast checker → · Palette generator →

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