#BAF771#BAF771

#BAF771 is a very light, vivid yellow-green. Relative luminance 0.782; OKLCH L 90.7% C 0.176 H 129.7°. Best body text is #000000 at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#BAF771
RGBrgb(186, 247, 113)
HSLhsl(87, 89%, 71%)
HSVhsv(87, 54%, 97%)
CMYKcmyk(24.7%, 0%, 54.3%, 3.1%)
CIE-LABlab(90.85, -40.17, 57.45)
CIE-LCHlch(90.85, 70.10, 124.96°)
OKLaboklab(90.73% -0.1123 0.1354)
OKLCHoklch(90.73% 0.176 129.7)
XYZxyz(56.4906, 78.1516, 27.7281)
Luminance0.7815 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF771 #AE71F7
analogous
#F7F171 #BAF771 #77F771
triadic
#BAF771 #71BAF7 #F771BA
tetradic
#BAF771 #71F7F1 #AE71F7 #F77177
square
#BAF771 #71F7F1 #AE71F7 #F77177
split-complementary
#BAF771 #7177F7 #F171F7
monochromatic
#80E10D #9EF437 #BAF771 #D6FAAB #F1FDE2

Accessibility & contrast

On white

1.26
#BAF771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.63
#BAF771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF771
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF771#FFFFFF#000000##000000
##BAF7711.001.2616.6316.63
#FFFFFF1.261.0021.0021.00
#00000016.6321.001.001.00
##00000016.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE864
Deuteranopia (green-blind)
#F9E37A
Tritanopia (blue-blind)
#BEEED9
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #baf771;
/* rgb */ color: rgb(186, 247, 113);
/* oklch */ color: oklch(90.7% 0.176 129.7);
Tailwind
colors: {
  custom: {
    50: '#d2fa9d',
    500: '#baf771',
    950: '#000000',
  },
}
SCSS
$custom: #baf771;
$custom-light: #d2fa9d;
$custom-dark: #000000;
JSON
{
  "hex": "#baf771",
  "rgb": {
    "r": 186,
    "g": 247,
    "b": 113
  },
  "hsl": {
    "h": 87.313,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.90732,
    "c": 0.17592,
    "h": 129.7
  },
  "luminance": 0.78153
}

Semantic roles & 50–950 ramp

primary
#BAF771
secondary
#7F3AD2
accent
#00E668
background
#FEFFFC
surface
#FBFFF5
border
#D4D7CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF771

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

Preview Lab → · Contrast checker → · Palette generator →

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