#BAF172#BAF172

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

Color values

HEX#BAF172
RGBrgb(186, 241, 114)
HSLhsl(86, 82%, 70%)
HSVhsv(86, 53%, 95%)
CMYKcmyk(22.8%, 0%, 52.7%, 5.5%)
CIE-LABlab(89.19, -37.39, 55.05)
CIE-LCHlch(89.19, 66.55, 124.19°)
OKLaboklab(89.39% -0.1046 0.1303)
OKLCHoklch(89.39% 0.167 128.8)
XYZxyz(54.7419, 74.5636, 27.4244)
Luminance0.7457 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF172 #A972F1
analogous
#F1E872 #BAF172 #7BF172
triadic
#BAF172 #72BAF1 #F172BA
tetradic
#BAF172 #72F1E8 #A972F1 #F1727B
square
#BAF172 #72F1E8 #A972F1 #F1727B
split-complementary
#BAF172 #727BF1 #E872F1
monochromatic
#81D415 #9FEB3A #BAF172 #D5F7AA #F0FCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAF172#FFFFFF#000000##000000
##BAF1721.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)
#FBE366
Deuteranopia (green-blind)
#F3DF7A
Tritanopia (blue-blind)
#BFE8D4
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #baf172;
/* rgb */ color: rgb(186, 241, 114);
/* oklch */ color: oklch(89.4% 0.167 128.8);
Tailwind
colors: {
  custom: {
    50: '#d1f69e',
    500: '#baf172',
    950: '#000000',
  },
}
SCSS
$custom: #baf172;
$custom-light: #d1f69e;
$custom-dark: #000000;
JSON
{
  "hex": "#baf172",
  "rgb": {
    "r": 186,
    "g": 241,
    "b": 114
  },
  "hsl": {
    "h": 85.984,
    "s": 81.935,
    "l": 69.608
  },
  "oklch": {
    "l": 0.89392,
    "c": 0.16703,
    "h": 128.8
  },
  "luminance": 0.74565
}

Semantic roles & 50–950 ramp

primary
#BAF172
secondary
#7A3DCA
accent
#07DE64
background
#FEFFFC
surface
#FBFEF5
border
#D4D6CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF172

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

Preview Lab → · Contrast checker → · Palette generator →

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