#BAF270#BAF270

#BAF270 is a very light, vivid yellow-green. Relative luminance 0.751; OKLCH L 89.6% C 0.170 H 128.8°. Best body text is #000000 at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#BAF270
RGBrgb(186, 242, 112)
HSLhsl(86, 83%, 69%)
HSVhsv(86, 54%, 95%)
CMYKcmyk(23.1%, 0%, 53.7%, 5.1%)
CIE-LABlab(89.45, -38.04, 56.26)
CIE-LCHlch(89.45, 67.91, 124.06°)
OKLaboklab(89.59% -0.1065 0.1327)
OKLCHoklch(89.59% 0.17 128.8)
XYZxyz(54.9261, 75.1121, 26.9304)
Luminance0.7511 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF270 #A870F2
analogous
#F2E970 #BAF270 #79F270
triadic
#BAF270 #70BAF2 #F270BA
tetradic
#BAF270 #70F2E9 #A870F2 #F27079
square
#BAF270 #70F2E9 #A870F2 #F27079
split-complementary
#BAF270 #7079F2 #E970F2
monochromatic
#81D413 #9FED38 #BAF270 #D5F7A8 #F0FCE0

Accessibility & contrast

On white

1.31
#BAF270 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.02
#BAF270 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF270
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF270#FFFFFF#000000##000000
##BAF2701.001.3116.0216.02
#FFFFFF1.311.0021.0021.00
#00000016.0221.001.001.00
##00000016.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE363
Deuteranopia (green-blind)
#F4E078
Tritanopia (blue-blind)
#BFE9D5
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #baf270;
/* rgb */ color: rgb(186, 242, 112);
/* oklch */ color: oklch(89.6% 0.170 128.8);
Tailwind
colors: {
  custom: {
    50: '#d1f69c',
    500: '#baf270',
    950: '#000000',
  },
}
SCSS
$custom: #baf270;
$custom-light: #d1f69c;
$custom-dark: #000000;
JSON
{
  "hex": "#baf270",
  "rgb": {
    "r": 186,
    "g": 242,
    "b": 112
  },
  "hsl": {
    "h": 85.846,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.89594,
    "c": 0.17016,
    "h": 128.8
  },
  "luminance": 0.75113
}

Semantic roles & 50–950 ramp

primary
#BAF270
secondary
#793BCB
accent
#06E064
background
#FEFFFC
surface
#FBFEF5
border
#D4D6CF
text
#14170E
muted
#83857F

Preview Lab

Preview with #BAF270

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

Preview Lab → · Contrast checker → · Palette generator →

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