#BAF251#BAF251

#BAF251 is a very light, vivid yellow-green. Relative luminance 0.745; OKLCH L 89.3% C 0.195 H 126.6°. Best body text is #000000 at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#BAF251
RGBrgb(186, 242, 81)
HSLhsl(81, 86%, 63%)
HSVhsv(81, 67%, 95%)
CMYKcmyk(23.1%, 0%, 66.5%, 5.1%)
CIE-LABlab(89.18, -40.54, 68.89)
CIE-LCHlch(89.18, 79.93, 120.48°)
OKLaboklab(89.29% -0.116 0.1562)
OKLCHoklch(89.29% 0.195 126.6)
XYZxyz(53.4872, 74.5366, 19.3520)
Luminance0.7454 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF251 #8951F2
analogous
#F2DA51 #BAF251 #69F251
triadic
#BAF251 #51BAF2 #F251BA
tetradic
#BAF251 #51F2DA #8951F2 #F25169
square
#BAF251 #51F2DA #8951F2 #F25169
split-complementary
#BAF251 #5169F2 #DA51F2
monochromatic
#7FBB0E #A3EE18 #BAF251 #D1F68A #E7FBC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAF251#FFFFFF#000000##000000
##BAF2511.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)
#FEE23A
Deuteranopia (green-blind)
#F6DF5E
Tritanopia (blue-blind)
#C1E7D2
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #baf251;
/* rgb */ color: rgb(186, 242, 81);
/* oklch */ color: oklch(89.3% 0.195 126.6);
Tailwind
colors: {
  custom: {
    50: '#d2f68a',
    500: '#baf251',
    950: '#000000',
  },
}
SCSS
$custom: #baf251;
$custom-light: #d2f68a;
$custom-dark: #000000;
JSON
{
  "hex": "#baf251",
  "rgb": {
    "r": 186,
    "g": 242,
    "b": 81
  },
  "hsl": {
    "h": 80.87,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.89288,
    "c": 0.19454,
    "h": 126.6
  },
  "luminance": 0.74537
}

Semantic roles & 50–950 ramp

primary
#BAF251
secondary
#5E2EB9
accent
#03E351
background
#FEFFFC
surface
#FBFEF4
border
#D4D6CE
text
#15170C
muted
#84857F

Preview Lab

Preview with #BAF251

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

Preview Lab → · Contrast checker → · Palette generator →

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