#BAB54A#BAB54A

#BAB54A is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.6% C 0.128 H 106.6°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#BAB54A
RGBrgb(186, 181, 74)
HSLhsl(57, 45%, 51%)
HSVhsv(57, 60%, 73%)
CMYKcmyk(0%, 2.7%, 60.2%, 27.1%)
CIE-LABlab(72.22, -11.87, 53.71)
CIE-LCHlch(72.22, 55.00, 102.46°)
OKLaboklab(75.64% -0.0367 0.1232)
OKLCHoklch(75.64% 0.128 106.6)
XYZxyz(38.0108, 43.9825, 12.9644)
Luminance0.4398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB54A #4A4FBA
analogous
#BA7D4A #BAB54A #87BA4A
triadic
#BAB54A #4ABAB5 #B54ABA
tetradic
#BAB54A #4ABA7D #4A4FBA #BA4A87
square
#BAB54A #4ABA7D #4A4FBA #BA4A87
split-complementary
#BAB54A #4A87BA #7D4ABA
monochromatic
#646126 #908C37 #BAB54A #CBC776 #DCD9A3

Accessibility & contrast

On white

2.14
#BAB54A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.80
#BAB54A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB54A
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB54A#FFFFFF#000000##000000
##BAB54A1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF3E
Deuteranopia (green-blind)
#C6B350
Tritanopia (blue-blind)
#C7AA9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab54a;
/* rgb */ color: rgb(186, 181, 74);
/* oklch */ color: oklch(75.6% 0.128 106.6);
Tailwind
colors: {
  custom: {
    50: '#d1ca81',
    500: '#bab54a',
    950: '#000000',
  },
}
SCSS
$custom: #bab54a;
$custom-light: #d1ca81;
$custom-dark: #000000;
JSON
{
  "hex": "#bab54a",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 74
  },
  "hsl": {
    "h": 57.321,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.75639,
    "c": 0.12849,
    "h": 106.6
  },
  "luminance": 0.43981
}

Semantic roles & 50–950 ramp

primary
#BAB54A
secondary
#9799C9
accent
#59D553
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB54A

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

Preview Lab → · Contrast checker → · Palette generator →

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