#BAF579#BAF579

#BAF579 is a very light, vivid yellow-green. Relative luminance 0.771; OKLCH L 90.4% C 0.166 H 130.2°. Best body text is #000000 at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#BAF579
RGBrgb(186, 245, 121)
HSLhsl(89, 86%, 72%)
HSVhsv(89, 51%, 96%)
CMYKcmyk(24.1%, 0%, 50.6%, 3.9%)
CIE-LABlab(90.38, -38.48, 53.27)
CIE-LCHlch(90.38, 65.71, 125.85°)
OKLaboklab(90.38% -0.1071 0.1269)
OKLCHoklch(90.38% 0.166 130.2)
XYZxyz(56.3527, 77.1231, 30.0027)
Luminance0.7712 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF579 #B479F5
analogous
#F5F279 #BAF579 #7CF579
triadic
#BAF579 #79BAF5 #F579BA
tetradic
#BAF579 #79F5F2 #B479F5 #F5797C
square
#BAF579 #79F5F2 #B479F5 #F5797C
split-complementary
#BAF579 #797CF5 #F279F5
monochromatic
#7FE311 #9DF140 #BAF579 #D7F9B2 #F0FDE3

Accessibility & contrast

On white

1.28
#BAF579 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.42
#BAF579 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF579
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF579#FFFFFF#000000##000000
##BAF5791.001.2816.4216.42
#FFFFFF1.281.0021.0021.00
#00000016.4221.001.001.00
##00000016.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE66E
Deuteranopia (green-blind)
#F6E281
Tritanopia (blue-blind)
#BEECD9
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #baf579;
/* rgb */ color: rgb(186, 245, 121);
/* oklch */ color: oklch(90.4% 0.166 130.2);
Tailwind
colors: {
  custom: {
    50: '#d1f8a2',
    500: '#baf579',
    950: '#000000',
  },
}
SCSS
$custom: #baf579;
$custom-light: #d1f8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#baf579",
  "rgb": {
    "r": 186,
    "g": 245,
    "b": 121
  },
  "hsl": {
    "h": 88.548,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.90379,
    "c": 0.16603,
    "h": 130.2
  },
  "luminance": 0.77124
}

Semantic roles & 50–950 ramp

primary
#BAF579
secondary
#8642D0
accent
#03E36D
background
#FEFFFC
surface
#FBFFF6
border
#D4D7D0
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF579

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

Preview Lab → · Contrast checker → · Palette generator →

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