#BAF171#BAF171

#BAF171 is a very light, vivid yellow-green. Relative luminance 0.745; OKLCH L 89.4% C 0.168 H 128.7°. Best body text is #000000 at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#BAF171
RGBrgb(186, 241, 113)
HSLhsl(86, 82%, 69%)
HSVhsv(86, 53%, 95%)
CMYKcmyk(22.8%, 0%, 53.1%, 5.5%)
CIE-LABlab(89.18, -37.49, 55.49)
CIE-LCHlch(89.18, 66.97, 124.04°)
OKLaboklab(89.38% -0.1049 0.1311)
OKLCHoklch(89.38% 0.168 128.7)
XYZxyz(54.6853, 74.5409, 27.1263)
Luminance0.7454 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF171 #A871F1
analogous
#F1E871 #BAF171 #7AF171
triadic
#BAF171 #71BAF1 #F171BA
tetradic
#BAF171 #71F1E8 #A871F1 #F1717A
square
#BAF171 #71F1E8 #A871F1 #F1717A
split-complementary
#BAF171 #717AF1 #E871F1
monochromatic
#81D315 #9FEC39 #BAF171 #D5F6A9 #F0FCE0

Accessibility & contrast

On white

1.32
#BAF171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.91
#BAF171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF171
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF171#FFFFFF#000000##000000
##BAF1711.001.3215.9115.91
#FFFFFF1.321.0021.0021.00
#00000015.9121.001.001.00
##00000015.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE265
Deuteranopia (green-blind)
#F3DF79
Tritanopia (blue-blind)
#BFE8D4
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #baf171;
/* rgb */ color: rgb(186, 241, 113);
/* oklch */ color: oklch(89.4% 0.168 128.7);
Tailwind
colors: {
  custom: {
    50: '#d1f69d',
    500: '#baf171',
    950: '#000000',
  },
}
SCSS
$custom: #baf171;
$custom-light: #d1f69d;
$custom-dark: #000000;
JSON
{
  "hex": "#baf171",
  "rgb": {
    "r": 186,
    "g": 241,
    "b": 113
  },
  "hsl": {
    "h": 85.781,
    "s": 82.051,
    "l": 69.412
  },
  "oklch": {
    "l": 0.8938,
    "c": 0.16794,
    "h": 128.7
  },
  "luminance": 0.74542
}

Semantic roles & 50–950 ramp

primary
#BAF171
secondary
#793CCA
accent
#07DE64
background
#FEFFFC
surface
#FBFEF5
border
#D4D6CF
text
#14170E
muted
#83857F

Preview Lab

Preview with #BAF171

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

Preview Lab → · Contrast checker → · Palette generator →

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