#BAF796#BAF796

#BAF796 is a very light, vivid yellow-green. Relative luminance 0.792; OKLCH L 91.3% C 0.140 H 134.6°. Best body text is #000000 at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#BAF796
RGBrgb(186, 247, 150)
HSLhsl(98, 86%, 78%)
HSVhsv(98, 39%, 97%)
CMYKcmyk(24.7%, 0%, 39.3%, 3.1%)
CIE-LABlab(91.31, -35.97, 40.57)
CIE-LCHlch(91.31, 54.22, 131.57°)
OKLaboklab(91.25% -0.0985 0.0998)
OKLCHoklch(91.25% 0.14 134.6)
XYZxyz(59.0141, 79.1610, 41.0186)
Luminance0.7916 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF796 #D396F7
analogous
#EAF796 #BAF796 #96F7A2
triadic
#BAF796 #96BAF7 #F796BA
tetradic
#BAF796 #96EAF7 #D396F7 #F7A296
square
#BAF796 #96EAF7 #D396F7 #F7A296
split-complementary
#BAF796 #A296F7 #F796EA
monochromatic
#6FEE24 #95F35D #BAF796 #DFFBCF #ECFDE3

Accessibility & contrast

On white

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

On black

16.83
#BAF796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF796
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF796#FFFFFF#000000##000000
##BAF7961.001.2516.8316.83
#FFFFFF1.251.0021.0021.00
#00000016.8321.001.001.00
##00000016.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE98F
Deuteranopia (green-blind)
#F5E49B
Tritanopia (blue-blind)
#BAF0DF
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #baf796;
/* rgb */ color: rgb(186, 247, 150);
/* oklch */ color: oklch(91.3% 0.140 134.6);
Tailwind
colors: {
  custom: {
    50: '#d0fab6',
    500: '#baf796',
    950: '#000000',
  },
}
SCSS
$custom: #baf796;
$custom-light: #d0fab6;
$custom-dark: #000000;
JSON
{
  "hex": "#baf796",
  "rgb": {
    "r": 186,
    "g": 247,
    "b": 150
  },
  "hsl": {
    "h": 97.732,
    "s": 85.841,
    "l": 77.843
  },
  "oklch": {
    "l": 0.91251,
    "c": 0.14026,
    "h": 134.6
  },
  "luminance": 0.79163
}

Semantic roles & 50–950 ramp

primary
#BAF796
secondary
#A85BD6
accent
#03E290
background
#FEFFFD
surface
#FBFFF8
border
#D4D7D1
text
#141711
muted
#838581

Preview Lab

Preview with #BAF796

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

Preview Lab → · Contrast checker → · Palette generator →

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