#BAF787#BAF787

#BAF787 is a very light, vivid yellow-green. Relative luminance 0.787; OKLCH L 91.0% C 0.155 H 132.2°. Best body text is #000000 at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#BAF787
RGBrgb(186, 247, 135)
HSLhsl(93, 88%, 75%)
HSVhsv(93, 45%, 97%)
CMYKcmyk(24.7%, 0%, 45.3%, 3.1%)
CIE-LABlab(91.10, -37.84, 47.58)
CIE-LCHlch(91.10, 60.79, 128.49°)
OKLaboklab(91.02% -0.1044 0.1151)
OKLCHoklch(91.02% 0.155 132.2)
XYZxyz(57.8827, 78.7084, 35.0596)
Luminance0.7871 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF787 #C487F7
analogous
#F2F787 #BAF787 #87F78C
triadic
#BAF787 #87BAF7 #F787BA
tetradic
#BAF787 #87F2F7 #C487F7 #F78C87
square
#BAF787 #87F2F7 #C487F7 #F78C87
split-complementary
#BAF787 #8C87F7 #F787F2
monochromatic
#78EF14 #99F34E #BAF787 #DBFBC0 #EFFDE2

Accessibility & contrast

On white

1.25
#BAF787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.74
#BAF787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF787
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF787#FFFFFF#000000##000000
##BAF7871.001.2516.7416.74
#FFFFFF1.251.0021.0021.00
#00000016.7421.001.001.00
##00000016.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #baf787;
/* rgb */ color: rgb(186, 247, 135);
/* oklch */ color: oklch(91.0% 0.155 132.2);
Tailwind
colors: {
  custom: {
    50: '#d1faac',
    500: '#baf787',
    950: '#000000',
  },
}
SCSS
$custom: #baf787;
$custom-light: #d1faac;
$custom-dark: #000000;
JSON
{
  "hex": "#baf787",
  "rgb": {
    "r": 186,
    "g": 247,
    "b": 135
  },
  "hsl": {
    "h": 92.679,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.91019,
    "c": 0.15541,
    "h": 132.2
  },
  "luminance": 0.7871
}

Semantic roles & 50–950 ramp

primary
#BAF787
secondary
#974ED4
accent
#01E47D
background
#FEFFFD
surface
#FBFFF7
border
#D4D7D0
text
#141710
muted
#838581

Preview Lab

Preview with #BAF787

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

Preview Lab → · Contrast checker → · Palette generator →

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