#BAB54D#BAB54D

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

Color values

HEX#BAB54D
RGBrgb(186, 181, 77)
HSLhsl(57, 44%, 52%)
HSVhsv(57, 59%, 73%)
CMYKcmyk(0%, 2.7%, 58.6%, 27.1%)
CIE-LABlab(72.24, -11.65, 52.39)
CIE-LCHlch(72.24, 53.67, 102.54°)
OKLaboklab(75.67% -0.0357 0.1208)
OKLCHoklch(75.67% 0.126 106.5)
XYZxyz(38.1143, 44.0239, 13.5095)
Luminance0.4402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB54D #4D52BA
analogous
#BA7F4D #BAB54D #89BA4D
triadic
#BAB54D #4DBAB5 #B54DBA
tetradic
#BAB54D #4DBA7F #4D52BA #BA4D89
square
#BAB54D #4DBA7F #4D52BA #BA4D89
split-complementary
#BAB54D #4D89BA #7F4DBA
monochromatic
#656227 #918D38 #BAB54D #CBC779 #DCDAA5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB54D#FFFFFF#000000##000000
##BAB54D1.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)
#C3AF42
Deuteranopia (green-blind)
#C5B353
Tritanopia (blue-blind)
#C6AA9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab54d;
/* rgb */ color: rgb(186, 181, 77);
/* oklch */ color: oklch(75.7% 0.126 106.5);
Tailwind
colors: {
  custom: {
    50: '#d1ca83',
    500: '#bab54d',
    950: '#000000',
  },
}
SCSS
$custom: #bab54d;
$custom-light: #d1ca83;
$custom-dark: #000000;
JSON
{
  "hex": "#bab54d",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 77
  },
  "hsl": {
    "h": 57.248,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.7567,
    "c": 0.12593,
    "h": 106.5
  },
  "luminance": 0.44023
}

Semantic roles & 50–950 ramp

primary
#BAB54D
secondary
#999CC9
accent
#5AD454
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C

Preview Lab

Preview with #BAB54D

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

Preview Lab → · Contrast checker → · Palette generator →

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