#BABD31#BABD31

#BABD31 is a light, vivid yellow. Relative luminance 0.471; OKLCH L 77.2% C 0.154 H 110.8°. Best body text is #000000 at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#BABD31
RGBrgb(186, 189, 49)
HSLhsl(61, 59%, 47%)
HSVhsv(61, 74%, 74%)
CMYKcmyk(1.6%, 0%, 74.1%, 25.9%)
CIE-LABlab(74.23, -17.35, 65.53)
CIE-LCHlch(74.23, 67.79, 104.83°)
OKLaboklab(77.19% -0.0546 0.1441)
OKLCHoklch(77.19% 0.154 110.8)
XYZxyz(39.0030, 47.0571, 9.9335)
Luminance0.4706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BABD31 #3431BD
analogous
#BD7A31 #BABD31 #74BD31
triadic
#BABD31 #31BABD #BD31BA
tetradic
#BABD31 #31BD7A #3431BD #BD3174
square
#BABD31 #31BD7A #3431BD #BD3174
split-complementary
#BABD31 #3174BD #7A31BD
monochromatic
#5A5C18 #8A8C24 #BABD31 #D1D458 #DEE088

Accessibility & contrast

On white

2.02
#BABD31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.41
#BABD31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BABD31
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BABD31#FFFFFF#000000##000000
##BABD311.002.0210.4110.41
#FFFFFF2.021.0021.0021.00
#00000010.4121.001.001.00
##00000010.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCB512
Deuteranopia (green-blind)
#CDB83C
Tritanopia (blue-blind)
#C7B1A2
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #babd31;
/* rgb */ color: rgb(186, 189, 49);
/* oklch */ color: oklch(77.2% 0.154 110.8);
Tailwind
colors: {
  custom: {
    50: '#d2d074',
    500: '#babd31',
    950: '#000000',
  },
}
SCSS
$custom: #babd31;
$custom-light: #d2d074;
$custom-dark: #000000;
JSON
{
  "hex": "#babd31",
  "rgb": {
    "r": 186,
    "g": 189,
    "b": 49
  },
  "hsl": {
    "h": 61.286,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.77186,
    "c": 0.15411,
    "h": 110.8
  },
  "luminance": 0.47056
}

Semantic roles & 50–950 ramp

primary
#BABD31
secondary
#8180CA
accent
#46E249
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BABD31

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

Preview Lab → · Contrast checker → · Palette generator →

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