#BAF978#BAF978

#BAF978 is a very light, vivid yellow-green. Relative luminance 0.795; OKLCH L 91.3% C 0.172 H 130.7°. Best body text is #000000 at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#BAF978
RGBrgb(186, 249, 120)
HSLhsl(89, 91%, 72%)
HSVhsv(89, 52%, 98%)
CMYKcmyk(25.3%, 0%, 51.8%, 2.4%)
CIE-LABlab(91.48, -40.36, 55.04)
CIE-LCHlch(91.48, 68.25, 126.26°)
OKLaboklab(91.27% -0.1124 0.1307)
OKLCHoklch(91.27% 0.172 130.7)
XYZxyz(57.5149, 79.5451, 30.0892)
Luminance0.7955 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF978 #B778F9
analogous
#F9F778 #BAF978 #7AF978
triadic
#BAF978 #78BAF9 #F978BA
tetradic
#BAF978 #78F9F7 #B778F9 #F9787A
square
#BAF978 #78F9F7 #B778F9 #F9787A
split-complementary
#BAF978 #787AF9 #F778F9
monochromatic
#7EEC0A #9CF63D #BAF978 #D8FCB3 #F0FEE2

Accessibility & contrast

On white

1.24
#BAF978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.91
#BAF978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF978
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF978#FFFFFF#000000##000000
##BAF9781.001.2416.9116.91
#FFFFFF1.241.0021.0021.00
#00000016.9121.001.001.00
##00000016.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA6C
Deuteranopia (green-blind)
#FAE580
Tritanopia (blue-blind)
#BDF0DC
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #baf978;
/* rgb */ color: rgb(186, 249, 120);
/* oklch */ color: oklch(91.3% 0.172 130.7);
Tailwind
colors: {
  custom: {
    50: '#d1fba2',
    500: '#baf978',
    950: '#000000',
  },
}
SCSS
$custom: #baf978;
$custom-light: #d1fba2;
$custom-dark: #000000;
JSON
{
  "hex": "#baf978",
  "rgb": {
    "r": 186,
    "g": 249,
    "b": 120
  },
  "hsl": {
    "h": 89.302,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.91267,
    "c": 0.17236,
    "h": 130.7
  },
  "luminance": 0.79547
}

Semantic roles & 50–950 ramp

primary
#BAF978
secondary
#8940D5
accent
#00E670
background
#FEFFFC
surface
#FBFFF6
border
#D4D7D0
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF978

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

Preview Lab → · Contrast checker → · Palette generator →

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