#BAF381#BAF381

#BAF381 is a very light, vivid yellow-green. Relative luminance 0.761; OKLCH L 90.0% C 0.156 H 130.8°. Best body text is #000000 at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#BAF381
RGBrgb(186, 243, 129)
HSLhsl(90, 83%, 73%)
HSVhsv(90, 47%, 95%)
CMYKcmyk(23.5%, 0%, 46.9%, 4.7%)
CIE-LABlab(89.92, -36.72, 48.96)
CIE-LCHlch(89.92, 61.20, 126.87°)
OKLaboklab(90.04% -0.1016 0.1179)
OKLCHoklch(90.04% 0.156 130.8)
XYZxyz(56.2620, 76.1240, 32.4938)
Luminance0.7612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF381 #BA81F3
analogous
#F3F381 #BAF381 #81F381
triadic
#BAF381 #81BAF3 #F381BA
tetradic
#BAF381 #81F3F3 #BA81F3 #F38181
square
#BAF381 #81F3F3 #BA81F3 #F38181
split-complementary
#BAF381 #8181F3 #F381F3
monochromatic
#7DE416 #9BEE49 #BAF381 #D9F8B9 #F0FCE3

Accessibility & contrast

On white

1.29
#BAF381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.22
#BAF381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF381
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF381#FFFFFF#000000##000000
##BAF3811.001.2916.2216.22
#FFFFFF1.291.0021.0021.00
#00000016.2221.001.001.00
##00000016.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE577
Deuteranopia (green-blind)
#F4E188
Tritanopia (blue-blind)
#BDEBD8
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #baf381;
/* rgb */ color: rgb(186, 243, 129);
/* oklch */ color: oklch(90.0% 0.156 130.8);
Tailwind
colors: {
  custom: {
    50: '#d1f7a8',
    500: '#baf381',
    950: '#000000',
  },
}
SCSS
$custom: #baf381;
$custom-light: #d1f7a8;
$custom-dark: #000000;
JSON
{
  "hex": "#baf381",
  "rgb": {
    "r": 186,
    "g": 243,
    "b": 129
  },
  "hsl": {
    "h": 90,
    "s": 82.609,
    "l": 72.941
  },
  "oklch": {
    "l": 0.90037,
    "c": 0.15566,
    "h": 130.8
  },
  "luminance": 0.76125
}

Semantic roles & 50–950 ramp

primary
#BAF381
secondary
#8C4ACF
accent
#06DF73
background
#FEFFFC
surface
#FBFEF6
border
#D4D6D0
text
#141710
muted
#838580

Preview Lab

Preview with #BAF381

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

Preview Lab → · Contrast checker → · Palette generator →

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