#BAB531#BAB531

#BAB531 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#BAB531
RGBrgb(186, 181, 49)
HSLhsl(58, 58%, 46%)
HSVhsv(58, 74%, 73%)
CMYKcmyk(0%, 2.7%, 73.7%, 27.1%)
CIE-LABlab(72.03, -13.29, 63.47)
CIE-LCHlch(72.03, 64.84, 101.83°)
OKLaboklab(75.44% -0.0433 0.1397)
OKLCHoklch(75.44% 0.146 107.2)
XYZxyz(37.3294, 43.7099, 9.3756)
Luminance0.4371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB531 #3136BA
analogous
#BA7031 #BAB531 #7ABA31
triadic
#BAB531 #31BAB5 #B531BA
tetradic
#BAB531 #31BA70 #3136BA #BA317A
square
#BAB531 #31BA70 #3136BA #BA317A
split-complementary
#BAB531 #317ABA #7031BA
monochromatic
#595717 #8A8624 #BAB531 #D2CE56 #DFDC86

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB531#FFFFFF#000000##000000
##BAB5311.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)
#C4AE16
Deuteranopia (green-blind)
#C7B33B
Tritanopia (blue-blind)
#C8A99C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab531;
/* rgb */ color: rgb(186, 181, 49);
/* oklch */ color: oklch(75.4% 0.146 107.2);
Tailwind
colors: {
  custom: {
    50: '#d2ca73',
    500: '#bab531',
    950: '#000000',
  },
}
SCSS
$custom: #bab531;
$custom-light: #d2ca73;
$custom-dark: #000000;
JSON
{
  "hex": "#bab531",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 49
  },
  "hsl": {
    "h": 57.81,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.75435,
    "c": 0.14628,
    "h": 107.2
  },
  "luminance": 0.43709
}

Semantic roles & 50–950 ramp

primary
#BAB531
secondary
#7E81C9
accent
#4CE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB531

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

Preview Lab → · Contrast checker → · Palette generator →

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