#BAF972#BAF972

#BAF972 is a very light, vivid yellow-green. Relative luminance 0.794; OKLCH L 91.2% C 0.178 H 130.1°. Best body text is #000000 at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#BAF972
RGBrgb(186, 249, 114)
HSLhsl(88, 92%, 71%)
HSVhsv(88, 54%, 98%)
CMYKcmyk(25.3%, 0%, 54.2%, 2.4%)
CIE-LABlab(91.42, -40.96, 57.67)
CIE-LCHlch(91.42, 70.73, 125.38°)
OKLaboklab(91.2% -0.1145 0.1359)
OKLCHoklch(91.2% 0.178 130.1)
XYZxyz(57.1621, 79.4040, 28.2312)
Luminance0.7941 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF972 #B172F9
analogous
#F9F572 #BAF972 #76F972
triadic
#BAF972 #72BAF9 #F972BA
tetradic
#BAF972 #72F9F5 #B172F9 #F97276
square
#BAF972 #72F9F5 #B172F9 #F97276
split-complementary
#BAF972 #7276F9 #F572F9
monochromatic
#80E70A #9DF737 #BAF972 #D7FBAD #F1FEE2

Accessibility & contrast

On white

1.24
#BAF972 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.88
#BAF972 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF972
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF972#FFFFFF#000000##000000
##BAF9721.001.2416.8816.88
#FFFFFF1.241.0021.0021.00
#00000016.8821.001.001.00
##00000016.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE965
Deuteranopia (green-blind)
#FAE57B
Tritanopia (blue-blind)
#BEF0DB
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #baf972;
/* rgb */ color: rgb(186, 249, 114);
/* oklch */ color: oklch(91.2% 0.178 130.1);
Tailwind
colors: {
  custom: {
    50: '#d2fb9e',
    500: '#baf972',
    950: '#000000',
  },
}
SCSS
$custom: #baf972;
$custom-light: #d2fb9e;
$custom-dark: #000000;
JSON
{
  "hex": "#baf972",
  "rgb": {
    "r": 186,
    "g": 249,
    "b": 114
  },
  "hsl": {
    "h": 88,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.91195,
    "c": 0.1777,
    "h": 130.1
  },
  "luminance": 0.79405
}

Semantic roles & 50–950 ramp

primary
#BAF972
secondary
#823BD4
accent
#00E66B
background
#FEFFFC
surface
#FBFFF5
border
#D4D7CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF972

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

Preview Lab → · Contrast checker → · Palette generator →

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