#BAB32D#BAB32D

#BAB32D is a light, vivid yellow. Relative luminance 0.429; OKLCH L 75.0% C 0.147 H 106.4°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#BAB32D
RGBrgb(186, 179, 45)
HSLhsl(57, 61%, 45%)
HSVhsv(57, 76%, 73%)
CMYKcmyk(0%, 3.8%, 75.8%, 27.1%)
CIE-LABlab(71.47, -12.44, 64.28)
CIE-LCHlch(71.47, 65.47, 100.95°)
OKLaboklab(74.98% -0.0413 0.1407)
OKLCHoklch(74.98% 0.147 106.4)
XYZxyz(36.8450, 42.8701, 8.8161)
Luminance0.4287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB32D #2D34BA
analogous
#BA6C2D #BAB32D #7BBA2D
triadic
#BAB32D #2DBAB3 #B32DBA
tetradic
#BAB32D #2DBA6C #2D34BA #BA2D7B
square
#BAB32D #2DBA6C #2D34BA #BA2D7B
split-complementary
#BAB32D #2D7BBA #6C2DBA
monochromatic
#575415 #898421 #BAB32D #D5CE50 #E0DC81

Accessibility & contrast

On white

2.19
#BAB32D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.57
#BAB32D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB32D
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB32D#FFFFFF#000000##000000
##BAB32D1.002.199.579.57
#FFFFFF2.191.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC0D
Deuteranopia (green-blind)
#C6B138
Tritanopia (blue-blind)
#C8A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #bab32d;
/* rgb */ color: rgb(186, 179, 45);
/* oklch */ color: oklch(75.0% 0.147 106.4);
Tailwind
colors: {
  custom: {
    50: '#d3c971',
    500: '#bab32d',
    950: '#000000',
  },
}
SCSS
$custom: #bab32d;
$custom-light: #d3c971;
$custom-dark: #000000;
JSON
{
  "hex": "#bab32d",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 45
  },
  "hsl": {
    "h": 57.021,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74976,
    "c": 0.14664,
    "h": 106.4
  },
  "luminance": 0.42869
}

Semantic roles & 50–950 ramp

primary
#BAB32D
secondary
#797DC9
accent
#4CE444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB32D

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

Preview Lab → · Contrast checker → · Palette generator →

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