#BAF962#BAF962

#BAF962 is a very light, vivid yellow-green. Relative luminance 0.791; OKLCH L 91.0% C 0.191 H 128.8°. Best body text is #000000 at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#BAF962
RGBrgb(186, 249, 98)
HSLhsl(85, 93%, 68%)
HSVhsv(85, 61%, 98%)
CMYKcmyk(25.3%, 0%, 60.6%, 2.4%)
CIE-LABlab(91.27, -42.37, 64.39)
CIE-LCHlch(91.27, 77.08, 123.35°)
OKLaboklab(91.03% -0.1196 0.1488)
OKLCHoklch(91.03% 0.191 128.8)
XYZxyz(56.3297, 79.0711, 23.8474)
Luminance0.7907 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF962 #A162F9
analogous
#F9EC62 #BAF962 #6EF962
triadic
#BAF962 #62BAF9 #F962BA
tetradic
#BAF962 #62F9EC #A162F9 #F9626E
square
#BAF962 #62F9EC #A162F9 #F9626E
split-complementary
#BAF962 #626EF9 #EC62F9
monochromatic
#82D808 #A0F727 #BAF962 #D4FB9D #EEFED8

Accessibility & contrast

On white

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

On black

16.81
#BAF962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF962
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF962#FFFFFF#000000##000000
##BAF9621.001.2516.8116.81
#FFFFFF1.251.0021.0021.00
#00000016.8121.001.001.00
##00000016.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE950
Deuteranopia (green-blind)
#FBE56D
Tritanopia (blue-blind)
#BFEFD9
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #baf962;
/* rgb */ color: rgb(186, 249, 98);
/* oklch */ color: oklch(91.0% 0.191 128.8);
Tailwind
colors: {
  custom: {
    50: '#d2fb94',
    500: '#baf962',
    950: '#000000',
  },
}
SCSS
$custom: #baf962;
$custom-light: #d2fb94;
$custom-dark: #000000;
JSON
{
  "hex": "#baf962",
  "rgb": {
    "r": 186,
    "g": 249,
    "b": 98
  },
  "hsl": {
    "h": 85.033,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.91025,
    "c": 0.19089,
    "h": 128.8
  },
  "luminance": 0.79072
}

Semantic roles & 50–950 ramp

primary
#BAF962
secondary
#722DD2
accent
#00E660
background
#FEFFFC
surface
#FBFFF5
border
#D4D7CF
text
#14170E
muted
#83857F

Preview Lab

Preview with #BAF962

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

Preview Lab → · Contrast checker → · Palette generator →

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