#BABF2A#BABF2A

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

Color values

HEX#BABF2A
RGBrgb(186, 191, 42)
HSLhsl(62, 64%, 46%)
HSVhsv(62, 78%, 75%)
CMYKcmyk(2.6%, 0%, 78%, 25.1%)
CIE-LABlab(74.74, -18.63, 68.19)
CIE-LCHlch(74.74, 70.69, 105.29°)
OKLaboklab(77.59% -0.0588 0.1485)
OKLCHoklch(77.59% 0.16 111.6)
XYZxyz(39.2998, 47.8689, 9.3595)
Luminance0.4787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABF2A #2F2ABF
analogous
#BF792A #BABF2A #70BF2A
triadic
#BABF2A #2ABABF #BF2ABA
tetradic
#BABF2A #2ABF79 #2F2ABF #BF2A70
square
#BABF2A #2ABF79 #2F2ABF #BF2A70
split-complementary
#BABF2A #2A70BF #792ABF
monochromatic
#585B14 #898D1F #BABF2A #D3D84E #E0E380

Accessibility & contrast

On white

1.99
#BABF2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.57
#BABF2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABF2A
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABF2A#FFFFFF#000000##000000
##BABF2A1.001.9910.5710.57
#FFFFFF1.991.0021.0021.00
#00000010.5721.001.001.00
##00000010.5721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #babf2a;
/* rgb */ color: rgb(186, 191, 42);
/* oklch */ color: oklch(77.6% 0.160 111.6);
Tailwind
colors: {
  custom: {
    50: '#d3d271',
    500: '#babf2a',
    950: '#000000',
  },
}
SCSS
$custom: #babf2a;
$custom-light: #d3d271;
$custom-dark: #000000;
JSON
{
  "hex": "#babf2a",
  "rgb": {
    "r": 186,
    "g": 191,
    "b": 42
  },
  "hsl": {
    "h": 62.013,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.77588,
    "c": 0.15971,
    "h": 111.6
  },
  "luminance": 0.47868
}

Semantic roles & 50–950 ramp

primary
#BABF2A
secondary
#7C79CC
accent
#41E746
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151408
muted
#83827B

Preview Lab

Preview with #BABF2A

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

Preview Lab → · Contrast checker → · Palette generator →

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