#BAF956#BAF956

#BAF956 is a very light, vivid yellow-green. Relative luminance 0.789; OKLCH L 90.9% C 0.200 H 128.1°. Best body text is #000000 at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#BAF956
RGBrgb(186, 249, 86)
HSLhsl(83, 93%, 66%)
HSVhsv(83, 65%, 98%)
CMYKcmyk(25.3%, 0%, 65.5%, 2.4%)
CIE-LABlab(91.17, -43.27, 69.07)
CIE-LCHlch(91.17, 81.50, 122.06°)
OKLaboklab(90.92% -0.1231 0.1572)
OKLCHoklch(90.92% 0.2 128.1)
XYZxyz(55.8050, 78.8612, 21.0839)
Luminance0.7886 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF956 #9556F9
analogous
#F9E656 #BAF956 #68F956
triadic
#BAF956 #56BAF9 #F956BA
tetradic
#BAF956 #56F9E6 #9556F9 #F95668
square
#BAF956 #56F9E6 #9556F9 #F95668
split-complementary
#BAF956 #5668F9 #E656F9
monochromatic
#81CD07 #A2F71B #BAF956 #D2FB91 #EAFDCC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAF956#FFFFFF#000000##000000
##BAF9561.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)
#FFE83F
Deuteranopia (green-blind)
#FCE463
Tritanopia (blue-blind)
#C0EED8
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #baf956;
/* rgb */ color: rgb(186, 249, 86);
/* oklch */ color: oklch(90.9% 0.200 128.1);
Tailwind
colors: {
  custom: {
    50: '#d3fb8d',
    500: '#baf956',
    950: '#000000',
  },
}
SCSS
$custom: #baf956;
$custom-light: #d3fb8d;
$custom-dark: #000000;
JSON
{
  "hex": "#baf956",
  "rgb": {
    "r": 186,
    "g": 249,
    "b": 86
  },
  "hsl": {
    "h": 83.19,
    "s": 93.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.90917,
    "c": 0.19966,
    "h": 128.1
  },
  "luminance": 0.78862
}

Semantic roles & 50–950 ramp

primary
#BAF956
secondary
#682AC9
accent
#00E659
background
#FEFFFC
surface
#FBFFF4
border
#D4D7CE
text
#15170D
muted
#84857F

Preview Lab

Preview with #BAF956

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

Preview Lab → · Contrast checker → · Palette generator →

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