#BAF871#BAF871

#BAF871 is a very light, vivid yellow-green. Relative luminance 0.788; OKLCH L 91.0% C 0.177 H 129.8°. Best body text is #000000 at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#BAF871
RGBrgb(186, 248, 113)
HSLhsl(88, 91%, 71%)
HSVhsv(88, 54%, 97%)
CMYKcmyk(25%, 0%, 54.4%, 2.7%)
CIE-LABlab(91.13, -40.61, 57.78)
CIE-LCHlch(91.13, 70.62, 125.10°)
OKLaboklab(90.96% -0.1136 0.1361)
OKLCHoklch(90.96% 0.177 129.8)
XYZxyz(56.7972, 78.7648, 27.8303)
Luminance0.7877 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF871 #AF71F8
analogous
#F8F371 #BAF871 #76F871
triadic
#BAF871 #71BAF8 #F871BA
tetradic
#BAF871 #71F8F3 #AF71F8 #F87176
square
#BAF871 #71F8F3 #AF71F8 #F87176
split-complementary
#BAF871 #7176F8 #F371F8
monochromatic
#80E30B #9EF537 #BAF871 #D6FBAB #F1FEE2

Accessibility & contrast

On white

1.25
#BAF871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.75
#BAF871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF871
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF871#FFFFFF#000000##000000
##BAF8711.001.2516.7516.75
#FFFFFF1.251.0021.0021.00
#00000016.7521.001.001.00
##00000016.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE864
Deuteranopia (green-blind)
#F9E47A
Tritanopia (blue-blind)
#BEEFDA
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #baf871;
/* rgb */ color: rgb(186, 248, 113);
/* oklch */ color: oklch(91.0% 0.177 129.8);
Tailwind
colors: {
  custom: {
    50: '#d2fb9d',
    500: '#baf871',
    950: '#000000',
  },
}
SCSS
$custom: #baf871;
$custom-light: #d2fb9d;
$custom-dark: #000000;
JSON
{
  "hex": "#baf871",
  "rgb": {
    "r": 186,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 87.556,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.90958,
    "c": 0.17725,
    "h": 129.8
  },
  "luminance": 0.78766
}

Semantic roles & 50–950 ramp

primary
#BAF871
secondary
#803AD3
accent
#00E669
background
#FEFFFC
surface
#FBFFF5
border
#D4D7CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF871

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

Preview Lab → · Contrast checker → · Palette generator →

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