#BAFA72#BAFA72

#BAFA72 is a very light, vivid yellow-green. Relative luminance 0.800; OKLCH L 91.4% C 0.179 H 130.3°. Best body text is #000000 at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#BAFA72
RGBrgb(186, 250, 114)
HSLhsl(88, 93%, 71%)
HSVhsv(88, 54%, 98%)
CMYKcmyk(25.6%, 0%, 54.4%, 2%)
CIE-LABlab(91.70, -41.40, 57.99)
CIE-LCHlch(91.70, 71.25, 125.52°)
OKLaboklab(91.42% -0.1157 0.1366)
OKLCHoklch(91.42% 0.179 130.3)
XYZxyz(57.4720, 80.0238, 28.3345)
Luminance0.8003 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAFA72 #B272FA
analogous
#FAF672 #BAFA72 #76FA72
triadic
#BAFA72 #72BAFA #FA72BA
tetradic
#BAFA72 #72FAF6 #B272FA #FA7276
square
#BAFA72 #72FAF6 #B272FA #FA7276
split-complementary
#BAFA72 #7276FA #F672FA
monochromatic
#7FE908 #9DF837 #BAFA72 #D7FCAD #F1FEE1

Accessibility & contrast

On white

1.23
#BAFA72 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.01
#BAFA72 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAFA72
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAFA72#FFFFFF#000000##000000
##BAFA721.001.2317.0117.01
#FFFFFF1.231.0021.0021.00
#00000017.0121.001.001.00
##00000017.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA65
Deuteranopia (green-blind)
#FBE67B
Tritanopia (blue-blind)
#BEF1DC
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #bafa72;
/* rgb */ color: rgb(186, 250, 114);
/* oklch */ color: oklch(91.4% 0.179 130.3);
Tailwind
colors: {
  custom: {
    50: '#d2fc9e',
    500: '#bafa72',
    950: '#000000',
  },
}
SCSS
$custom: #bafa72;
$custom-light: #d2fc9e;
$custom-dark: #000000;
JSON
{
  "hex": "#bafa72",
  "rgb": {
    "r": 186,
    "g": 250,
    "b": 114
  },
  "hsl": {
    "h": 88.235,
    "s": 93.151,
    "l": 71.373
  },
  "oklch": {
    "l": 0.91421,
    "c": 0.17902,
    "h": 130.3
  },
  "luminance": 0.80025
}

Semantic roles & 50–950 ramp

primary
#BAFA72
secondary
#843BD6
accent
#00E66C
background
#FEFFFC
surface
#FBFFF5
border
#D4D7CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAFA72

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

Preview Lab → · Contrast checker → · Palette generator →

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