#BAF157#BAF157

#BAF157 is a very light, vivid yellow-green. Relative luminance 0.740; OKLCH L 89.1% C 0.189 H 126.7°. Best body text is #000000 at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#BAF157
RGBrgb(186, 241, 87)
HSLhsl(81, 85%, 64%)
HSVhsv(81, 64%, 95%)
CMYKcmyk(22.8%, 0%, 63.9%, 5.5%)
CIE-LABlab(88.94, -39.69, 66.32)
CIE-LCHlch(88.94, 77.29, 120.90°)
OKLaboklab(89.11% -0.1131 0.1515)
OKLCHoklch(89.11% 0.189 126.7)
XYZxyz(53.4254, 74.0370, 20.4908)
Luminance0.7404 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF157 #8E57F1
analogous
#F1DB57 #BAF157 #6DF157
triadic
#BAF157 #57BAF1 #F157BA
tetradic
#BAF157 #57F1DB #8E57F1 #F1576D
square
#BAF157 #57F1DB #8E57F1 #F1576D
split-complementary
#BAF157 #576DF1 #DB57F1
monochromatic
#80BE10 #A3EC1F #BAF157 #D1F68F #E8FAC8

Accessibility & contrast

On white

1.33
#BAF157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.81
#BAF157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF157
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF157#FFFFFF#000000##000000
##BAF1571.001.3315.8115.81
#FFFFFF1.331.0021.0021.00
#00000015.8121.001.001.00
##00000015.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE243
Deuteranopia (green-blind)
#F5DE63
Tritanopia (blue-blind)
#C1E6D1
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #baf157;
/* rgb */ color: rgb(186, 241, 87);
/* oklch */ color: oklch(89.1% 0.189 126.7);
Tailwind
colors: {
  custom: {
    50: '#d2f68d',
    500: '#baf157',
    950: '#000000',
  },
}
SCSS
$custom: #baf157;
$custom-light: #d2f68d;
$custom-dark: #000000;
JSON
{
  "hex": "#baf157",
  "rgb": {
    "r": 186,
    "g": 241,
    "b": 87
  },
  "hsl": {
    "h": 81.429,
    "s": 84.615,
    "l": 64.314
  },
  "oklch": {
    "l": 0.89112,
    "c": 0.18911,
    "h": 126.7
  },
  "luminance": 0.74038
}

Semantic roles & 50–950 ramp

primary
#BAF157
secondary
#6230BC
accent
#04E153
background
#FEFFFC
surface
#FBFEF4
border
#D4D6CE
text
#14170D
muted
#83857F

Preview Lab

Preview with #BAF157

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

Preview Lab → · Contrast checker → · Palette generator →

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