#BAF170#BAF170

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

Color values

HEX#BAF170
RGBrgb(186, 241, 112)
HSLhsl(86, 82%, 69%)
HSVhsv(86, 54%, 95%)
CMYKcmyk(22.8%, 0%, 53.5%, 5.5%)
CIE-LABlab(89.17, -37.59, 55.93)
CIE-LCHlch(89.17, 67.39, 123.90°)
OKLaboklab(89.37% -0.1053 0.132)
OKLCHoklch(89.37% 0.169 128.6)
XYZxyz(54.6293, 74.5185, 26.8314)
Luminance0.7452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF170 #A770F1
analogous
#F1E770 #BAF170 #7AF170
triadic
#BAF170 #70BAF1 #F170BA
tetradic
#BAF170 #70F1E7 #A770F1 #F1707A
square
#BAF170 #70F1E7 #A770F1 #F1707A
split-complementary
#BAF170 #707AF1 #E770F1
monochromatic
#81D215 #9FEC38 #BAF170 #D5F6A8 #F0FCDF

Accessibility & contrast

On white

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

On black

15.90
#BAF170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF170
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF170#FFFFFF#000000##000000
##BAF1701.001.3215.9015.90
#FFFFFF1.321.0021.0021.00
#00000015.9021.001.001.00
##00000015.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #baf170;
/* rgb */ color: rgb(186, 241, 112);
/* oklch */ color: oklch(89.4% 0.169 128.6);
Tailwind
colors: {
  custom: {
    50: '#d1f69c',
    500: '#baf170',
    950: '#000000',
  },
}
SCSS
$custom: #baf170;
$custom-light: #d1f69c;
$custom-dark: #000000;
JSON
{
  "hex": "#baf170",
  "rgb": {
    "r": 186,
    "g": 241,
    "b": 112
  },
  "hsl": {
    "h": 85.581,
    "s": 82.166,
    "l": 69.216
  },
  "oklch": {
    "l": 0.89368,
    "c": 0.16884,
    "h": 128.6
  },
  "luminance": 0.7452
}

Semantic roles & 50–950 ramp

primary
#BAF170
secondary
#783BCA
accent
#07DF63
background
#FEFFFC
surface
#FBFEF5
border
#D4D6CF
text
#14170E
muted
#83857F

Preview Lab

Preview with #BAF170

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

Preview Lab → · Contrast checker → · Palette generator →

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