#BAFA98#BAFA98

#BAFA98 is a very light, vivid yellow-green. Relative luminance 0.811; OKLCH L 92.0% C 0.143 H 135.4°. Best body text is #000000 at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#BAFA98
RGBrgb(186, 250, 152)
HSLhsl(99, 91%, 79%)
HSVhsv(99, 39%, 98%)
CMYKcmyk(25.6%, 0%, 39.2%, 2%)
CIE-LABlab(92.17, -37.07, 40.69)
CIE-LCHlch(92.17, 55.05, 132.33°)
OKLaboklab(91.95% -0.1015 0.1002)
OKLCHoklch(91.95% 0.143 135.4)
XYZxyz(60.1013, 81.0755, 42.1822)
Luminance0.8108 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAFA98 #D898FA
analogous
#EBFA98 #BAFA98 #98FAA7
triadic
#BAFA98 #98BAFA #FA98BA
tetradic
#BAFA98 #98EBFA #D898FA #FAA798
square
#BAFA98 #98EBFA #D898FA #FAA798
split-complementary
#BAFA98 #A798FA #FA98EB
monochromatic
#6CF423 #93F75E #BAFA98 #E1FDD2 #EBFEE2

Accessibility & contrast

On white

1.22
#BAFA98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.22
#BAFA98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAFA98
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAFA98#FFFFFF#000000##000000
##BAFA981.001.2217.2217.22
#FFFFFF1.221.0021.0021.00
#00000017.2221.001.001.00
##00000017.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC91
Deuteranopia (green-blind)
#F7E79D
Tritanopia (blue-blind)
#B9F3E2
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #bafa98;
/* rgb */ color: rgb(186, 250, 152);
/* oklch */ color: oklch(92.0% 0.143 135.4);
Tailwind
colors: {
  custom: {
    50: '#d0fcb7',
    500: '#bafa98',
    950: '#000000',
  },
}
SCSS
$custom: #bafa98;
$custom-light: #d0fcb7;
$custom-dark: #000000;
JSON
{
  "hex": "#bafa98",
  "rgb": {
    "r": 186,
    "g": 250,
    "b": 152
  },
  "hsl": {
    "h": 99.184,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.91953,
    "c": 0.14261,
    "h": 135.4
  },
  "luminance": 0.81077
}

Semantic roles & 50–950 ramp

primary
#BAFA98
secondary
#AF5CDB
accent
#00E696
background
#FEFFFD
surface
#FBFFF8
border
#D4D7D1
text
#141711
muted
#838581

Preview Lab

Preview with #BAFA98

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

Preview Lab → · Contrast checker → · Palette generator →

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