#BAB951#BAB951

#BAB951 is a light, vivid yellow. Relative luminance 0.457; OKLCH L 76.6% C 0.127 H 108.5°. Best body text is #000000 at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#BAB951
RGBrgb(186, 185, 81)
HSLhsl(59, 43%, 52%)
HSVhsv(59, 56%, 73%)
CMYKcmyk(0%, 0.5%, 56.5%, 27.1%)
CIE-LABlab(73.37, -13.41, 51.84)
CIE-LCHlch(73.37, 53.54, 104.50°)
OKLaboklab(76.58% -0.0403 0.1201)
OKLCHoklch(76.58% 0.127 108.5)
XYZxyz(39.0850, 45.7322, 14.5513)
Luminance0.4573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB951 #5152BA
analogous
#BA8551 #BAB951 #86BA51
triadic
#BAB951 #51BAB9 #B951BA
tetradic
#BAB951 #51BA85 #5152BA #BA5186
square
#BAB951 #51BA85 #5152BA #BA5186
split-complementary
#BAB951 #5186BA #8551BA
monochromatic
#686729 #93933A #BAB951 #CBCB7D #DDDCA9

Accessibility & contrast

On white

2.07
#BAB951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.15
#BAB951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB951
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB951#FFFFFF#000000##000000
##BAB9511.002.0710.1510.15
#FFFFFF2.071.0021.0021.00
#00000010.1521.001.001.00
##00000010.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B246
Deuteranopia (green-blind)
#C8B657
Tritanopia (blue-blind)
#C6AEA2
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #bab951;
/* rgb */ color: rgb(186, 185, 81);
/* oklch */ color: oklch(76.6% 0.127 108.5);
Tailwind
colors: {
  custom: {
    50: '#d1cd85',
    500: '#bab951',
    950: '#000000',
  },
}
SCSS
$custom: #bab951;
$custom-light: #d1cd85;
$custom-dark: #000000;
JSON
{
  "hex": "#bab951",
  "rgb": {
    "r": 186,
    "g": 185,
    "b": 81
  },
  "hsl": {
    "h": 59.429,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.7658,
    "c": 0.12663,
    "h": 108.5
  },
  "luminance": 0.45731
}

Semantic roles & 50–950 ramp

primary
#BAB951
secondary
#9D9DCA
accent
#56D355
background
#FDFCF8
surface
#FAF9EF
border
#D3D2CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB951

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

Preview Lab → · Contrast checker → · Palette generator →

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