#BAF971#BAF971

#BAF971 is a very light, vivid yellow-green. Relative luminance 0.794; OKLCH L 91.2% C 0.179 H 130.0°. Best body text is #000000 at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#BAF971
RGBrgb(186, 249, 113)
HSLhsl(88, 92%, 71%)
HSVhsv(88, 55%, 98%)
CMYKcmyk(25.3%, 0%, 54.6%, 2.4%)
CIE-LABlab(91.41, -41.05, 58.10)
CIE-LCHlch(91.41, 71.14, 125.24°)
OKLaboklab(91.18% -0.1148 0.1368)
OKLCHoklch(91.18% 0.179 130)
XYZxyz(57.1055, 79.3814, 27.9331)
Luminance0.7938 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF971 #B071F9
analogous
#F9F471 #BAF971 #76F971
triadic
#BAF971 #71BAF9 #F971BA
tetradic
#BAF971 #71F9F4 #B071F9 #F97176
square
#BAF971 #71F9F4 #B071F9 #F97176
split-complementary
#BAF971 #7176F9 #F471F9
monochromatic
#80E60A #9DF736 #BAF971 #D7FBAC #F1FEE2

Accessibility & contrast

On white

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

On black

16.88
#BAF971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF971
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF971#FFFFFF#000000##000000
##BAF9711.001.2416.8816.88
#FFFFFF1.241.0021.0021.00
#00000016.8821.001.001.00
##00000016.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE964
Deuteranopia (green-blind)
#FAE57A
Tritanopia (blue-blind)
#BEF0DB
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #baf971;
/* rgb */ color: rgb(186, 249, 113);
/* oklch */ color: oklch(91.2% 0.179 130.0);
Tailwind
colors: {
  custom: {
    50: '#d2fb9d',
    500: '#baf971',
    950: '#000000',
  },
}
SCSS
$custom: #baf971;
$custom-light: #d2fb9d;
$custom-dark: #000000;
JSON
{
  "hex": "#baf971",
  "rgb": {
    "r": 186,
    "g": 249,
    "b": 113
  },
  "hsl": {
    "h": 87.794,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.91184,
    "c": 0.17857,
    "h": 130
  },
  "luminance": 0.79383
}

Semantic roles & 50–950 ramp

primary
#BAF971
secondary
#813AD4
accent
#00E66A
background
#FEFFFC
surface
#FBFFF5
border
#D4D7CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF971

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

Preview Lab → · Contrast checker → · Palette generator →

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