#BAB751#BAB751

#BAB751 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 76.1% C 0.124 H 107.5°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#BAB751
RGBrgb(186, 183, 81)
HSLhsl(58, 43%, 52%)
HSVhsv(58, 56%, 73%)
CMYKcmyk(0%, 1.6%, 56.5%, 27.1%)
CIE-LABlab(72.83, -12.38, 51.22)
CIE-LCHlch(72.83, 52.70, 103.59°)
OKLaboklab(76.15% -0.0373 0.1188)
OKLCHoklch(76.15% 0.124 107.5)
XYZxyz(38.6695, 44.9013, 14.4128)
Luminance0.4490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB751 #5154BA
analogous
#BA8351 #BAB751 #88BA51
triadic
#BAB751 #51BAB7 #B751BA
tetradic
#BAB751 #51BA83 #5154BA #BA5188
square
#BAB751 #51BA83 #5154BA #BA5188
split-complementary
#BAB751 #5188BA #8351BA
monochromatic
#686629 #93913A #BAB751 #CBC97D #DDDBA9

Accessibility & contrast

On white

2.10
#BAB751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#BAB751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB751
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB751#FFFFFF#000000##000000
##BAB7511.002.109.989.98
#FFFFFF2.101.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5B046
Deuteranopia (green-blind)
#C7B557
Tritanopia (blue-blind)
#C6ACA1
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #bab751;
/* rgb */ color: rgb(186, 183, 81);
/* oklch */ color: oklch(76.1% 0.124 107.5);
Tailwind
colors: {
  custom: {
    50: '#d1cc85',
    500: '#bab751',
    950: '#000000',
  },
}
SCSS
$custom: #bab751;
$custom-light: #d1cc85;
$custom-dark: #000000;
JSON
{
  "hex": "#bab751",
  "rgb": {
    "r": 186,
    "g": 183,
    "b": 81
  },
  "hsl": {
    "h": 58.286,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.76146,
    "c": 0.12449,
    "h": 107.5
  },
  "luminance": 0.449
}

Semantic roles & 50–950 ramp

primary
#BAB751
secondary
#9D9ECA
accent
#58D355
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB751

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

Preview Lab → · Contrast checker → · Palette generator →

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