#BAF874#BAF874

#BAF874 is a very light, vivid yellow-green. Relative luminance 0.788; OKLCH L 91.0% C 0.175 H 130.1°. Best body text is #000000 at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#BAF874
RGBrgb(186, 248, 116)
HSLhsl(88, 90%, 71%)
HSVhsv(88, 53%, 97%)
CMYKcmyk(25%, 0%, 53.2%, 2.7%)
CIE-LABlab(91.16, -40.32, 56.47)
CIE-LCHlch(91.16, 69.39, 125.53°)
OKLaboklab(90.99% -0.1125 0.1335)
OKLCHoklch(90.99% 0.175 130.1)
XYZxyz(56.9689, 78.8335, 28.7345)
Luminance0.7883 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF874 #B274F8
analogous
#F8F474 #BAF874 #78F874
triadic
#BAF874 #74BAF8 #F874BA
tetradic
#BAF874 #74F8F4 #B274F8 #F87478
square
#BAF874 #74F8F4 #B274F8 #F87478
split-complementary
#BAF874 #7478F8 #F474F8
monochromatic
#7FE60C #9DF53A #BAF874 #D7FBAE #F1FEE2

Accessibility & contrast

On white

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

On black

16.77
#BAF874 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF874
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF874#FFFFFF#000000##000000
##BAF8741.001.2516.7716.77
#FFFFFF1.251.0021.0021.00
#00000016.7721.001.001.00
##00000016.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE967
Deuteranopia (green-blind)
#F9E47D
Tritanopia (blue-blind)
#BEEFDA
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #baf874;
/* rgb */ color: rgb(186, 248, 116);
/* oklch */ color: oklch(91.0% 0.175 130.1);
Tailwind
colors: {
  custom: {
    50: '#d1fb9f',
    500: '#baf874',
    950: '#000000',
  },
}
SCSS
$custom: #baf874;
$custom-light: #d1fb9f;
$custom-dark: #000000;
JSON
{
  "hex": "#baf874",
  "rgb": {
    "r": 186,
    "g": 248,
    "b": 116
  },
  "hsl": {
    "h": 88.182,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.90993,
    "c": 0.17461,
    "h": 130.1
  },
  "luminance": 0.78835
}

Semantic roles & 50–950 ramp

primary
#BAF874
secondary
#843DD3
accent
#00E66C
background
#FEFFFC
surface
#FBFFF5
border
#D4D7CF
text
#14170F
muted
#838580

Preview Lab

Preview with #BAF874

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

Preview Lab → · Contrast checker → · Palette generator →

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