#BAF478#BAF478

#BAF478 is a very light, vivid yellow-green. Relative luminance 0.765; OKLCH L 90.1% C 0.166 H 129.9°. Best body text is #000000 at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#BAF478
RGBrgb(186, 244, 120)
HSLhsl(88, 85%, 71%)
HSVhsv(88, 51%, 96%)
CMYKcmyk(23.8%, 0%, 50.8%, 4.3%)
CIE-LABlab(90.09, -38.14, 53.38)
CIE-LCHlch(90.09, 65.60, 125.54°)
OKLaboklab(90.14% -0.1062 0.1271)
OKLCHoklch(90.14% 0.166 129.9)
XYZxyz(55.9900, 76.4953, 29.5809)
Luminance0.7650 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF478 #B278F4
analogous
#F4F078 #BAF478 #7CF478
triadic
#BAF478 #78BAF4 #F478BA
tetradic
#BAF478 #78F4F0 #B278F4 #F4787C
square
#BAF478 #78F4F0 #B278F4 #F4787C
split-complementary
#BAF478 #787CF4 #F078F4
monochromatic
#7FDF12 #9DEF3F #BAF478 #D7F9B1 #F1FDE3

Accessibility & contrast

On white

1.29
#BAF478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.30
#BAF478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF478
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF478#FFFFFF#000000##000000
##BAF4781.001.2916.3016.30
#FFFFFF1.291.0021.0021.00
#00000016.3021.001.001.00
##00000016.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE56D
Deuteranopia (green-blind)
#F5E180
Tritanopia (blue-blind)
#BEEBD8
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #baf478;
/* rgb */ color: rgb(186, 244, 120);
/* oklch */ color: oklch(90.1% 0.166 129.9);
Tailwind
colors: {
  custom: {
    50: '#d1f8a2',
    500: '#baf478',
    950: '#000000',
  },
}
SCSS
$custom: #baf478;
$custom-light: #d1f8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#baf478",
  "rgb": {
    "r": 186,
    "g": 244,
    "b": 120
  },
  "hsl": {
    "h": 88.065,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.90142,
    "c": 0.16559,
    "h": 129.9
  },
  "luminance": 0.76497
}

Semantic roles & 50–950 ramp

primary
#BAF478
secondary
#8441CF
accent
#04E16C
background
#FEFFFC
surface
#FBFFF5
border
#D4D7CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF478

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

Preview Lab → · Contrast checker → · Palette generator →

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