#BAF398#BAF398

#BAF398 is a very light, vivid yellow-green. Relative luminance 0.768; OKLCH L 90.4% C 0.132 H 134.5°. Best body text is #000000 at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#BAF398
RGBrgb(186, 243, 152)
HSLhsl(98, 79%, 77%)
HSVhsv(98, 37%, 95%)
CMYKcmyk(23.5%, 0%, 37.4%, 4.7%)
CIE-LABlab(90.23, -33.88, 38.18)
CIE-LCHlch(90.23, 51.05, 131.58°)
OKLaboklab(90.39% -0.0926 0.0944)
OKLCHoklch(90.39% 0.132 134.5)
XYZxyz(57.9665, 76.8058, 41.4706)
Luminance0.7681 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF398 #D198F3
analogous
#E8F398 #BAF398 #98F3A3
triadic
#BAF398 #98BAF3 #F398BA
tetradic
#BAF398 #98E8F3 #D198F3 #F3A398
square
#BAF398 #98E8F3 #D198F3 #F3A398
split-complementary
#BAF398 #A398F3 #F398E8
monochromatic
#71E62A #95ED61 #BAF398 #DFF9CF #EDFCE4

Accessibility & contrast

On white

1.28
#BAF398 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.36
#BAF398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF398
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF398#FFFFFF#000000##000000
##BAF3981.001.2816.3616.36
#FFFFFF1.281.0021.0021.00
#00000016.3621.001.001.00
##00000016.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE691
Deuteranopia (green-blind)
#F1E19D
Tritanopia (blue-blind)
#BAECDC
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #baf398;
/* rgb */ color: rgb(186, 243, 152);
/* oklch */ color: oklch(90.4% 0.132 134.5);
Tailwind
colors: {
  custom: {
    50: '#d0f7b7',
    500: '#baf398',
    950: '#000000',
  },
}
SCSS
$custom: #baf398;
$custom-light: #d0f7b7;
$custom-dark: #000000;
JSON
{
  "hex": "#baf398",
  "rgb": {
    "r": 186,
    "g": 243,
    "b": 152
  },
  "hsl": {
    "h": 97.582,
    "s": 79.13,
    "l": 77.451
  },
  "oklch": {
    "l": 0.90394,
    "c": 0.13226,
    "h": 134.5
  },
  "luminance": 0.76807
}

Semantic roles & 50–950 ramp

primary
#BAF398
secondary
#A65ED1
accent
#0ADB8D
background
#FEFFFD
surface
#FBFEF8
border
#D4D6D1
text
#141711
muted
#838581

Preview Lab

Preview with #BAF398

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

Preview Lab → · Contrast checker → · Palette generator →

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