#BAB32F#BAB32F

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

Color values

HEX#BAB32F
RGBrgb(186, 179, 47)
HSLhsl(57, 60%, 46%)
HSVhsv(57, 75%, 73%)
CMYKcmyk(0%, 3.8%, 74.7%, 27.1%)
CIE-LABlab(71.48, -12.36, 63.63)
CIE-LCHlch(71.48, 64.81, 100.99°)
OKLaboklab(74.99% -0.0409 0.1397)
OKLCHoklch(74.99% 0.146 106.3)
XYZxyz(36.8844, 42.8859, 9.0237)
Luminance0.4289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB32F #2F36BA
analogous
#BA6D2F #BAB32F #7CBA2F
triadic
#BAB32F #2FBAB3 #B32FBA
tetradic
#BAB32F #2FBA6D #2F36BA #BA2F7C
square
#BAB32F #2FBA6D #2F36BA #BA2F7C
split-complementary
#BAB32F #2F7CBA #6D2FBA
monochromatic
#585516 #898423 #BAB32F #D3CD53 #E0DB84

Accessibility & contrast

On white

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

On black

9.58
#BAB32F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB32F
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB32F#FFFFFF#000000##000000
##BAB32F1.002.199.589.58
#FFFFFF2.191.0021.0021.00
#0000009.5821.001.001.00
##0000009.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #bab32f;
/* rgb */ color: rgb(186, 179, 47);
/* oklch */ color: oklch(75.0% 0.146 106.3);
Tailwind
colors: {
  custom: {
    50: '#d2c972',
    500: '#bab32f',
    950: '#000000',
  },
}
SCSS
$custom: #bab32f;
$custom-light: #d2c972;
$custom-dark: #000000;
JSON
{
  "hex": "#bab32f",
  "rgb": {
    "r": 186,
    "g": 179,
    "b": 47
  },
  "hsl": {
    "h": 56.978,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.74988,
    "c": 0.14555,
    "h": 106.3
  },
  "luminance": 0.42885
}

Semantic roles & 50–950 ramp

primary
#BAB32F
secondary
#7C80C9
accent
#4DE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB32F

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

Preview Lab → · Contrast checker → · Palette generator →

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