#BAB54F#BAB54F

#BAB54F is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.7% C 0.124 H 106.4°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#BAB54F
RGBrgb(186, 181, 79)
HSLhsl(57, 44%, 52%)
HSVhsv(57, 58%, 73%)
CMYKcmyk(0%, 2.7%, 57.5%, 27.1%)
CIE-LABlab(72.26, -11.50, 51.51)
CIE-LCHlch(72.26, 52.77, 102.59°)
OKLaboklab(75.69% -0.0351 0.1191)
OKLCHoklch(75.69% 0.124 106.4)
XYZxyz(38.1860, 44.0525, 13.8871)
Luminance0.4405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB54F #4F54BA
analogous
#BA804F #BAB54F #8ABA4F
triadic
#BAB54F #4FBAB5 #B54FBA
tetradic
#BAB54F #4FBA80 #4F54BA #BA4F8A
square
#BAB54F #4FBA80 #4F54BA #BA4F8A
split-complementary
#BAB54F #4F8ABA #804FBA
monochromatic
#666428 #928E39 #BAB54F #CBC77B #DCDAA7

Accessibility & contrast

On white

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

On black

9.81
#BAB54F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB54F
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB54F#FFFFFF#000000##000000
##BAB54F1.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AF44
Deuteranopia (green-blind)
#C5B355
Tritanopia (blue-blind)
#C6AA9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab54f;
/* rgb */ color: rgb(186, 181, 79);
/* oklch */ color: oklch(75.7% 0.124 106.4);
Tailwind
colors: {
  custom: {
    50: '#d1cb84',
    500: '#bab54f',
    950: '#000000',
  },
}
SCSS
$custom: #bab54f;
$custom-light: #d1cb84;
$custom-dark: #000000;
JSON
{
  "hex": "#bab54f",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 79
  },
  "hsl": {
    "h": 57.196,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.75692,
    "c": 0.12417,
    "h": 106.4
  },
  "luminance": 0.44051
}

Semantic roles & 50–950 ramp

primary
#BAB54F
secondary
#9B9DCA
accent
#5AD354
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB54F

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

Preview Lab → · Contrast checker → · Palette generator →

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