#BAF781#BAF781

#BAF781 is a very light, vivid yellow-green. Relative luminance 0.785; OKLCH L 90.9% C 0.161 H 131.4°. Best body text is #000000 at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#BAF781
RGBrgb(186, 247, 129)
HSLhsl(91, 88%, 74%)
HSVhsv(91, 48%, 97%)
CMYKcmyk(24.7%, 0%, 47.8%, 3.1%)
CIE-LABlab(91.03, -38.52, 50.33)
CIE-LCHlch(91.03, 63.38, 127.43°)
OKLaboklab(90.94% -0.1066 0.1209)
OKLCHoklch(90.94% 0.161 131.4)
XYZxyz(57.4721, 78.5442, 32.8972)
Luminance0.7855 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF781 #BE81F7
analogous
#F5F781 #BAF781 #81F783
triadic
#BAF781 #81BAF7 #F781BA
tetradic
#BAF781 #81F5F7 #BE81F7 #F78381
square
#BAF781 #81F5F7 #BE81F7 #F78381
split-complementary
#BAF781 #8381F7 #F781F5
monochromatic
#7BEE0F #9AF347 #BAF781 #DAFBBB #EFFDE2

Accessibility & contrast

On white

1.26
#BAF781 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.71
#BAF781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF781
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF781#FFFFFF#000000##000000
##BAF7811.001.2616.7116.71
#FFFFFF1.261.0021.0021.00
#00000016.7121.001.001.00
##00000016.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE877
Deuteranopia (green-blind)
#F7E488
Tritanopia (blue-blind)
#BCEFDC
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #baf781;
/* rgb */ color: rgb(186, 247, 129);
/* oklch */ color: oklch(90.9% 0.161 131.4);
Tailwind
colors: {
  custom: {
    50: '#d1faa8',
    500: '#baf781',
    950: '#000000',
  },
}
SCSS
$custom: #baf781;
$custom-light: #d1faa8;
$custom-dark: #000000;
JSON
{
  "hex": "#baf781",
  "rgb": {
    "r": 186,
    "g": 247,
    "b": 129
  },
  "hsl": {
    "h": 91.017,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.90935,
    "c": 0.16123,
    "h": 131.4
  },
  "luminance": 0.78546
}

Semantic roles & 50–950 ramp

primary
#BAF781
secondary
#9049D4
accent
#01E577
background
#FEFFFD
surface
#FBFFF7
border
#D4D7D0
text
#141710
muted
#838581

Preview Lab

Preview with #BAF781

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

Preview Lab → · Contrast checker → · Palette generator →

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