#BAB52B#BAB52B

#BAB52B is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.4% C 0.150 H 107.3°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#BAB52B
RGBrgb(186, 181, 43)
HSLhsl(58, 62%, 45%)
HSVhsv(58, 77%, 73%)
CMYKcmyk(0%, 2.7%, 76.9%, 27.1%)
CIE-LABlab(72.00, -13.55, 65.41)
CIE-LCHlch(72.00, 66.80, 101.70°)
OKLaboklab(75.4% -0.0445 0.1427)
OKLCHoklch(75.4% 0.15 107.3)
XYZxyz(37.2111, 43.6626, 8.7526)
Luminance0.4366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB52B #2B30BA
analogous
#BA6D2B #BAB52B #78BA2B
triadic
#BAB52B #2BBAB5 #B52BBA
tetradic
#BAB52B #2BBA6D #2B30BA #BA2B78
square
#BAB52B #2BBA6D #2B30BA #BA2B78
split-complementary
#BAB52B #2B78BA #6D2BBA
monochromatic
#575414 #888520 #BAB52B #D6D14C #E1DE7E

Accessibility & contrast

On white

2.16
#BAB52B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#BAB52B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB52B
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB52B#FFFFFF#000000##000000
##BAB52B1.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE04
Deuteranopia (green-blind)
#C7B336
Tritanopia (blue-blind)
#C8A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab52b;
/* rgb */ color: rgb(186, 181, 43);
/* oklch */ color: oklch(75.4% 0.150 107.3);
Tailwind
colors: {
  custom: {
    50: '#d3ca70',
    500: '#bab52b',
    950: '#000000',
  },
}
SCSS
$custom: #bab52b;
$custom-light: #d3ca70;
$custom-dark: #000000;
JSON
{
  "hex": "#bab52b",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 43
  },
  "hsl": {
    "h": 57.902,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.754,
    "c": 0.14954,
    "h": 107.3
  },
  "luminance": 0.43661
}

Semantic roles & 50–950 ramp

primary
#BAB52B
secondary
#777ACA
accent
#48E642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB52B

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

Preview Lab → · Contrast checker → · Palette generator →

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