#BAF151#BAF151

#BAF151 is a very light, vivid yellow-green. Relative luminance 0.739; OKLCH L 89.1% C 0.193 H 126.4°. Best body text is #000000 at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#BAF151
RGBrgb(186, 241, 81)
HSLhsl(81, 85%, 63%)
HSVhsv(81, 66%, 95%)
CMYKcmyk(22.8%, 0%, 66.4%, 5.5%)
CIE-LABlab(88.90, -40.10, 68.60)
CIE-LCHlch(88.90, 79.46, 120.31°)
OKLaboklab(89.06% -0.1148 0.1556)
OKLCHoklch(89.06% 0.193 126.4)
XYZxyz(53.1904, 73.9429, 19.2531)
Luminance0.7394 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF151 #8851F1
analogous
#F1D851 #BAF151 #6AF151
triadic
#BAF151 #51BAF1 #F151BA
tetradic
#BAF151 #51F1D8 #8851F1 #F1516A
square
#BAF151 #51F1D8 #8851F1 #F1516A
split-complementary
#BAF151 #516AF1 #D851F1
monochromatic
#7EB90F #A4EC18 #BAF151 #D0F68A #E7FAC2

Accessibility & contrast

On white

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

On black

15.79
#BAF151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF151
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF151#FFFFFF#000000##000000
##BAF1511.001.3315.7915.79
#FFFFFF1.331.0021.0021.00
#00000015.7921.001.001.00
##00000015.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #baf151;
/* rgb */ color: rgb(186, 241, 81);
/* oklch */ color: oklch(89.1% 0.193 126.4);
Tailwind
colors: {
  custom: {
    50: '#d2f68a',
    500: '#baf151',
    950: '#000000',
  },
}
SCSS
$custom: #baf151;
$custom-light: #d2f68a;
$custom-dark: #000000;
JSON
{
  "hex": "#baf151",
  "rgb": {
    "r": 186,
    "g": 241,
    "b": 81
  },
  "hsl": {
    "h": 80.625,
    "s": 85.106,
    "l": 63.137
  },
  "oklch": {
    "l": 0.89061,
    "c": 0.19333,
    "h": 126.4
  },
  "luminance": 0.73944
}

Semantic roles & 50–950 ramp

primary
#BAF151
secondary
#5E2FB8
accent
#04E250
background
#FEFFFC
surface
#FBFEF4
border
#D4D6CE
text
#15170C
muted
#84857F

Preview Lab

Preview with #BAF151

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

Preview Lab → · Contrast checker → · Palette generator →

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