#BAF178#BAF178

#BAF178 is a very light, vivid yellow-green. Relative luminance 0.747; OKLCH L 89.5% C 0.162 H 129.4°. Best body text is #000000 at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#BAF178
RGBrgb(186, 241, 120)
HSLhsl(87, 81%, 71%)
HSVhsv(87, 50%, 95%)
CMYKcmyk(22.8%, 0%, 50.2%, 5.5%)
CIE-LABlab(89.25, -36.79, 52.38)
CIE-LCHlch(89.25, 64.01, 125.08°)
OKLaboklab(89.47% -0.1024 0.1249)
OKLCHoklch(89.47% 0.162 129.4)
XYZxyz(55.0947, 74.7047, 29.2824)
Luminance0.7471 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF178 #AF78F1
analogous
#F1EC78 #BAF178 #7DF178
triadic
#BAF178 #78BAF1 #F178BA
tetradic
#BAF178 #78F1EC #AF78F1 #F1787D
square
#BAF178 #78F1EC #AF78F1 #F1787D
split-complementary
#BAF178 #787DF1 #EC78F1
monochromatic
#80D816 #9EEB41 #BAF178 #D6F7AF #F1FCE3

Accessibility & contrast

On white

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

On black

15.94
#BAF178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF178
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF178#FFFFFF#000000##000000
##BAF1781.001.3215.9415.94
#FFFFFF1.321.0021.0021.00
#00000015.9421.001.001.00
##00000015.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE36D
Deuteranopia (green-blind)
#F3DF7F
Tritanopia (blue-blind)
#BEE8D5
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #baf178;
/* rgb */ color: rgb(186, 241, 120);
/* oklch */ color: oklch(89.5% 0.162 129.4);
Tailwind
colors: {
  custom: {
    50: '#d1f6a1',
    500: '#baf178',
    950: '#000000',
  },
}
SCSS
$custom: #baf178;
$custom-light: #d1f6a1;
$custom-dark: #000000;
JSON
{
  "hex": "#baf178",
  "rgb": {
    "r": 186,
    "g": 241,
    "b": 120
  },
  "hsl": {
    "h": 87.273,
    "s": 81.208,
    "l": 70.784
  },
  "oklch": {
    "l": 0.89467,
    "c": 0.16151,
    "h": 129.4
  },
  "luminance": 0.74706
}

Semantic roles & 50–950 ramp

primary
#BAF178
secondary
#8042CB
accent
#08DE69
background
#FEFFFC
surface
#FBFEF5
border
#D4D6CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF178

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

Preview Lab → · Contrast checker → · Palette generator →

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