#BAB532#BAB532

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

Color values

HEX#BAB532
RGBrgb(186, 181, 50)
HSLhsl(58, 58%, 46%)
HSVhsv(58, 73%, 73%)
CMYKcmyk(0%, 2.7%, 73.1%, 27.1%)
CIE-LABlab(72.04, -13.25, 63.12)
CIE-LCHlch(72.04, 64.50, 101.85°)
OKLaboklab(75.44% -0.0431 0.1392)
OKLCHoklch(75.44% 0.146 107.2)
XYZxyz(37.3508, 43.7184, 9.4880)
Luminance0.4372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB532 #3237BA
analogous
#BA7132 #BAB532 #7BBA32
triadic
#BAB532 #32BAB5 #B532BA
tetradic
#BAB532 #32BA71 #3237BA #BA327B
square
#BAB532 #32BA71 #3237BA #BA327B
split-complementary
#BAB532 #327BBA #7132BA
monochromatic
#5A5718 #8A8625 #BAB532 #D2CD57 #DFDC88

Accessibility & contrast

On white

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

On black

9.74
#BAB532 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB532
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB532#FFFFFF#000000##000000
##BAB5321.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE18
Deuteranopia (green-blind)
#C7B33C
Tritanopia (blue-blind)
#C8A99C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab532;
/* rgb */ color: rgb(186, 181, 50);
/* oklch */ color: oklch(75.4% 0.146 107.2);
Tailwind
colors: {
  custom: {
    50: '#d2ca73',
    500: '#bab532',
    950: '#000000',
  },
}
SCSS
$custom: #bab532;
$custom-light: #d2ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#bab532",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 50
  },
  "hsl": {
    "h": 57.794,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.75442,
    "c": 0.1457,
    "h": 107.2
  },
  "luminance": 0.43717
}

Semantic roles & 50–950 ramp

primary
#BAB532
secondary
#7F82C9
accent
#4DE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB532

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

Preview Lab → · Contrast checker → · Palette generator →

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