#BAF997#BAF997

#BAF997 is a very light, vivid yellow-green. Relative luminance 0.804; OKLCH L 91.7% C 0.142 H 135.1°. Best body text is #000000 at 17.09:1 contrast (WCAG AA passes).

Color values

HEX#BAF997
RGBrgb(186, 249, 151)
HSLhsl(99, 89%, 78%)
HSVhsv(99, 39%, 98%)
CMYKcmyk(25.3%, 0%, 39.4%, 2.4%)
CIE-LABlab(91.87, -36.75, 40.81)
CIE-LCHlch(91.87, 54.92, 132.00°)
OKLaboklab(91.71% -0.1006 0.1004)
OKLCHoklch(91.71% 0.142 135.1)
XYZxyz(59.7099, 80.4231, 41.6494)
Luminance0.8043 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF997 #D697F9
analogous
#EBF997 #BAF997 #97F9A5
triadic
#BAF997 #97BAF9 #F997BA
tetradic
#BAF997 #97EBF9 #D697F9 #F9A597
square
#BAF997 #97EBF9 #D697F9 #F9A597
split-complementary
#BAF997 #A597F9 #F997EB
monochromatic
#6DF223 #94F65D #BAF997 #E0FCD1 #ECFDE2

Accessibility & contrast

On white

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

On black

17.09
#BAF997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF997
17.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF997#FFFFFF#000000##000000
##BAF9971.001.2317.0917.09
#FFFFFF1.231.0021.0021.00
#00000017.0921.001.001.00
##00000017.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB90
Deuteranopia (green-blind)
#F6E69C
Tritanopia (blue-blind)
#BAF2E1
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #baf997;
/* rgb */ color: rgb(186, 249, 151);
/* oklch */ color: oklch(91.7% 0.142 135.1);
Tailwind
colors: {
  custom: {
    50: '#d0fbb6',
    500: '#baf997',
    950: '#000000',
  },
}
SCSS
$custom: #baf997;
$custom-light: #d0fbb6;
$custom-dark: #000000;
JSON
{
  "hex": "#baf997",
  "rgb": {
    "r": 186,
    "g": 249,
    "b": 151
  },
  "hsl": {
    "h": 98.571,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.91714,
    "c": 0.14217,
    "h": 135.1
  },
  "luminance": 0.80425
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BAF997

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

Preview Lab → · Contrast checker → · Palette generator →

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