#BAB73B#BAB73B

#BAB73B is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.9% C 0.142 H 108.0°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#BAB73B
RGBrgb(186, 183, 59)
HSLhsl(59, 52%, 48%)
HSVhsv(59, 68%, 73%)
CMYKcmyk(0%, 1.6%, 68.3%, 27.1%)
CIE-LABlab(72.64, -13.82, 60.40)
CIE-LCHlch(72.64, 61.96, 102.89°)
OKLaboklab(75.94% -0.0438 0.135)
OKLCHoklch(75.94% 0.142 108)
XYZxyz(37.9740, 44.6230, 10.7496)
Luminance0.4462 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB73B #3B3EBA
analogous
#BA783B #BAB73B #7DBA3B
triadic
#BAB73B #3BBAB7 #B73BBA
tetradic
#BAB73B #3BBA78 #3B3EBA #BA3B7D
square
#BAB73B #3BBA78 #3B3EBA #BA3B7D
split-complementary
#BAB73B #3B7DBA #783BBA
monochromatic
#5D5C1E #8C892C #BAB73B #CECB64 #DDDB93

Accessibility & contrast

On white

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

On black

9.92
#BAB73B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB73B
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB73B#FFFFFF#000000##000000
##BAB73B1.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B028
Deuteranopia (green-blind)
#C8B443
Tritanopia (blue-blind)
#C7AB9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #bab73b;
/* rgb */ color: rgb(186, 183, 59);
/* oklch */ color: oklch(75.9% 0.142 108.0);
Tailwind
colors: {
  custom: {
    50: '#d2cc78',
    500: '#bab73b',
    950: '#000000',
  },
}
SCSS
$custom: #bab73b;
$custom-light: #d2cc78;
$custom-dark: #000000;
JSON
{
  "hex": "#bab73b",
  "rgb": {
    "r": 186,
    "g": 183,
    "b": 59
  },
  "hsl": {
    "h": 58.583,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.75941,
    "c": 0.14193,
    "h": 108
  },
  "luminance": 0.44622
}

Semantic roles & 50–950 ramp

primary
#BAB73B
secondary
#898AC8
accent
#50DB4D
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#141309
muted
#83827B

Preview Lab

Preview with #BAB73B

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

Preview Lab → · Contrast checker → · Palette generator →

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