#BAB731#BAB731

#BAB731 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.9% C 0.148 H 108.2°. Best body text is #000000 at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#BAB731
RGBrgb(186, 183, 49)
HSLhsl(59, 58%, 46%)
HSVhsv(59, 74%, 73%)
CMYKcmyk(0%, 1.6%, 73.7%, 27.1%)
CIE-LABlab(72.58, -14.32, 63.98)
CIE-LCHlch(72.58, 65.56, 102.61°)
OKLaboklab(75.87% -0.0462 0.1408)
OKLCHoklch(75.87% 0.148 108.2)
XYZxyz(37.7390, 44.5291, 9.5122)
Luminance0.4453 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB731 #3134BA
analogous
#BA7231 #BAB731 #78BA31
triadic
#BAB731 #31BAB7 #B731BA
tetradic
#BAB731 #31BA72 #3134BA #BA3178
square
#BAB731 #31BA72 #3134BA #BA3178
split-complementary
#BAB731 #3178BA #7231BA
monochromatic
#595817 #8A8724 #BAB731 #D2D056 #DFDD86

Accessibility & contrast

On white

2.12
#BAB731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.91
#BAB731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB731
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB731#FFFFFF#000000##000000
##BAB7311.002.129.919.91
#FFFFFF2.121.0021.0021.00
#0000009.9121.001.001.00
##0000009.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B015
Deuteranopia (green-blind)
#C9B43B
Tritanopia (blue-blind)
#C8AB9D
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab731;
/* rgb */ color: rgb(186, 183, 49);
/* oklch */ color: oklch(75.9% 0.148 108.2);
Tailwind
colors: {
  custom: {
    50: '#d2cc73',
    500: '#bab731',
    950: '#000000',
  },
}
SCSS
$custom: #bab731;
$custom-light: #d2cc73;
$custom-dark: #000000;
JSON
{
  "hex": "#bab731",
  "rgb": {
    "r": 186,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 58.686,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.75871,
    "c": 0.14819,
    "h": 108.2
  },
  "luminance": 0.44528
}

Semantic roles & 50–950 ramp

primary
#BAB731
secondary
#7E80C9
accent
#4AE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB731

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

Preview Lab → · Contrast checker → · Palette generator →

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