#BABF2F#BABF2F

#BABF2F is a light, vivid yellow. Relative luminance 0.479; OKLCH L 77.6% C 0.157 H 111.6°. Best body text is #000000 at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#BABF2F
RGBrgb(186, 191, 47)
HSLhsl(62, 61%, 47%)
HSVhsv(62, 75%, 75%)
CMYKcmyk(2.6%, 0%, 75.4%, 25.1%)
CIE-LABlab(74.77, -18.44, 66.68)
CIE-LCHlch(74.77, 69.18, 105.46°)
OKLaboklab(77.61% -0.0578 0.1462)
OKLCHoklch(77.61% 0.157 111.6)
XYZxyz(39.3949, 47.9070, 9.8605)
Luminance0.4791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABF2F #342FBF
analogous
#BF7C2F #BABF2F #72BF2F
triadic
#BABF2F #2FBABF #BF2FBA
tetradic
#BABF2F #2FBF7C #342FBF #BF2F72
square
#BABF2F #2FBF7C #342FBF #BF2F72
split-complementary
#BABF2F #2F72BF #7C2FBF
monochromatic
#5A5D17 #8A8E23 #BABF2F #D1D556 #DEE187

Accessibility & contrast

On white

1.98
#BABF2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.58
#BABF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABF2F
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABF2F#FFFFFF#000000##000000
##BABF2F1.001.9810.5810.58
#FFFFFF1.981.0021.0021.00
#00000010.5821.001.001.00
##00000010.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB60A
Deuteranopia (green-blind)
#CFBA3B
Tritanopia (blue-blind)
#C7B3A4
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #babf2f;
/* rgb */ color: rgb(186, 191, 47);
/* oklch */ color: oklch(77.6% 0.157 111.6);
Tailwind
colors: {
  custom: {
    50: '#d2d273',
    500: '#babf2f',
    950: '#000000',
  },
}
SCSS
$custom: #babf2f;
$custom-light: #d2d273;
$custom-dark: #000000;
JSON
{
  "hex": "#babf2f",
  "rgb": {
    "r": 186,
    "g": 191,
    "b": 47
  },
  "hsl": {
    "h": 62.083,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.77615,
    "c": 0.15721,
    "h": 111.6
  },
  "luminance": 0.47906
}

Semantic roles & 50–950 ramp

primary
#BABF2F
secondary
#817FCB
accent
#44E44A
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151409
muted
#83827B

Preview Lab

Preview with #BABF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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