#BAB151#BAB151

#BAB151 is a light, moderate yellow. Relative luminance 0.425; OKLCH L 74.9% C 0.118 H 103.9°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#BAB151
RGBrgb(186, 177, 81)
HSLhsl(55, 43%, 52%)
HSVhsv(55, 56%, 73%)
CMYKcmyk(0%, 4.8%, 56.5%, 27.1%)
CIE-LABlab(71.20, -9.28, 49.38)
CIE-LCHlch(71.20, 50.24, 100.64°)
OKLaboklab(74.85% -0.0285 0.1148)
OKLCHoklch(74.85% 0.118 103.9)
XYZxyz(37.4582, 42.4787, 14.0091)
Luminance0.4248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB151 #515ABA
analogous
#BA7C51 #BAB151 #8FBA51
triadic
#BAB151 #51BAB1 #B151BA
tetradic
#BAB151 #51BA7C #515ABA #BA518F
square
#BAB151 #51BA7C #515ABA #BA518F
split-complementary
#BAB151 #518FBA #7C51BA
monochromatic
#686229 #938C3A #BAB151 #CBC57D #DDD8A9

Accessibility & contrast

On white

2.21
#BAB151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#BAB151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB151
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB151#FFFFFF#000000##000000
##BAB1511.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAC47
Deuteranopia (green-blind)
#C2B156
Tritanopia (blue-blind)
#C7A69C
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #bab151;
/* rgb */ color: rgb(186, 177, 81);
/* oklch */ color: oklch(74.9% 0.118 103.9);
Tailwind
colors: {
  custom: {
    50: '#d1c885',
    500: '#bab151',
    950: '#000000',
  },
}
SCSS
$custom: #bab151;
$custom-light: #d1c885;
$custom-dark: #000000;
JSON
{
  "hex": "#bab151",
  "rgb": {
    "r": 186,
    "g": 177,
    "b": 81
  },
  "hsl": {
    "h": 54.857,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.74852,
    "c": 0.11828,
    "h": 103.9
  },
  "luminance": 0.42477
}

Semantic roles & 50–950 ramp

primary
#BAB151
secondary
#9DA0CA
accent
#60D355
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB151

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

Preview Lab → · Contrast checker → · Palette generator →

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