#BAB920#BAB920

#BAB920 is a light, vivid yellow. Relative luminance 0.452; OKLCH L 76.2% C 0.158 H 109.2°. Best body text is #000000 at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#BAB920
RGBrgb(186, 185, 32)
HSLhsl(60, 71%, 43%)
HSVhsv(60, 83%, 73%)
CMYKcmyk(0%, 0.5%, 82.8%, 27.1%)
CIE-LABlab(73.05, -15.95, 69.41)
CIE-LCHlch(73.05, 71.22, 102.94°)
OKLaboklab(76.22% -0.0521 0.1493)
OKLCHoklch(76.22% 0.158 109.2)
XYZxyz(37.8609, 45.2425, 8.1045)
Luminance0.4524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB920 #2021BA
analogous
#BA6C20 #BAB920 #6EBA20
triadic
#BAB920 #20BAB9 #B920BA
tetradic
#BAB920 #20BA6C #2021BA #BA206E
square
#BAB920 #20BA6C #2021BA #BA206E
split-complementary
#BAB920 #206EBA #6C20BA
monochromatic
#52510E #868517 #BAB920 #DDDC3A #E6E56E

Accessibility & contrast

On white

2.09
#BAB920 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.05
#BAB920 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB920
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB920#FFFFFF#000000##000000
##BAB9201.002.0910.0510.05
#FFFFFF2.091.0021.0021.00
#00000010.0521.001.001.00
##00000010.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#CBB530
Tritanopia (blue-blind)
#C8AD9E
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab920;
/* rgb */ color: rgb(186, 185, 32);
/* oklch */ color: oklch(76.2% 0.158 109.2);
Tailwind
colors: {
  custom: {
    50: '#d3cd6c',
    500: '#bab920',
    950: '#000000',
  },
}
SCSS
$custom: #bab920;
$custom-light: #d3cd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab920",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 32
  },
  "hsl": {
    "h": 59.61,
    "s": 70.642,
    "l": 42.745
  },
  "oklch": {
    "l": 0.76223,
    "c": 0.15816,
    "h": 109.2
  },
  "luminance": 0.45241
}

Semantic roles & 50–950 ramp

primary
#BAB920
secondary
#696ACC
accent
#3CED3A
background
#FDFCF6
surface
#FBF8EC
border
#D4D1C7
text
#151308
muted
#83827A

Preview Lab

Preview with #BAB920

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

Preview Lab → · Contrast checker → · Palette generator →

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