#BAF397#BAF397

#BAF397 is a very light, vivid yellow-green. Relative luminance 0.768; OKLCH L 90.4% C 0.133 H 134.3°. Best body text is #000000 at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#BAF397
RGBrgb(186, 243, 151)
HSLhsl(97, 79%, 77%)
HSVhsv(97, 38%, 95%)
CMYKcmyk(23.5%, 0%, 37.9%, 4.7%)
CIE-LABlab(90.22, -34.01, 38.66)
CIE-LCHlch(90.22, 51.49, 131.34°)
OKLaboklab(90.38% -0.093 0.0955)
OKLCHoklch(90.38% 0.133 134.3)
XYZxyz(57.8849, 76.7732, 41.0411)
Luminance0.7678 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAF397 #D097F3
analogous
#E8F397 #BAF397 #97F3A2
triadic
#BAF397 #97BAF3 #F397BA
tetradic
#BAF397 #97E8F3 #D097F3 #F3A297
square
#BAF397 #97E8F3 #D097F3 #F3A297
split-complementary
#BAF397 #A297F3 #F397E8
monochromatic
#71E629 #96ED60 #BAF397 #DEF9CE #EDFCE4

Accessibility & contrast

On white

1.28
#BAF397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.36
#BAF397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAF397
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAF397#FFFFFF#000000##000000
##BAF3971.001.2816.3616.36
#FFFFFF1.281.0021.0021.00
#00000016.3621.001.001.00
##00000016.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE690
Deuteranopia (green-blind)
#F1E19C
Tritanopia (blue-blind)
#BAECDC
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #baf397;
/* rgb */ color: rgb(186, 243, 151);
/* oklch */ color: oklch(90.4% 0.133 134.3);
Tailwind
colors: {
  custom: {
    50: '#d0f7b6',
    500: '#baf397',
    950: '#000000',
  },
}
SCSS
$custom: #baf397;
$custom-light: #d0f7b6;
$custom-dark: #000000;
JSON
{
  "hex": "#baf397",
  "rgb": {
    "r": 186,
    "g": 243,
    "b": 151
  },
  "hsl": {
    "h": 97.174,
    "s": 79.31,
    "l": 77.255
  },
  "oklch": {
    "l": 0.90377,
    "c": 0.13331,
    "h": 134.3
  },
  "luminance": 0.76775
}

Semantic roles & 50–950 ramp

primary
#BAF397
secondary
#A55DD1
accent
#0ADC8C
background
#FEFFFD
surface
#FBFEF8
border
#D4D6D1
text
#141711
muted
#838581

Preview Lab

Preview with #BAF397

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

Preview Lab → · Contrast checker → · Palette generator →

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