#BAB54C#BAB54C

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

Color values

HEX#BAB54C
RGBrgb(186, 181, 76)
HSLhsl(57, 44%, 51%)
HSVhsv(57, 59%, 73%)
CMYKcmyk(0%, 2.7%, 59.1%, 27.1%)
CIE-LABlab(72.23, -11.72, 52.83)
CIE-LCHlch(72.23, 54.12, 102.51°)
OKLaboklab(75.66% -0.036 0.1216)
OKLCHoklch(75.66% 0.127 106.5)
XYZxyz(38.0793, 44.0098, 13.3249)
Luminance0.4401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB54C #4C51BA
analogous
#BA7E4C #BAB54C #88BA4C
triadic
#BAB54C #4CBAB5 #B54CBA
tetradic
#BAB54C #4CBA7E #4C51BA #BA4C88
square
#BAB54C #4CBA7E #4C51BA #BA4C88
split-complementary
#BAB54C #4C88BA #7E4CBA
monochromatic
#656227 #918D38 #BAB54C #CBC778 #DCDAA4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB54C#FFFFFF#000000##000000
##BAB54C1.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)
#C3AF40
Deuteranopia (green-blind)
#C6B352
Tritanopia (blue-blind)
#C7AA9E
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab54c;
/* rgb */ color: rgb(186, 181, 76);
/* oklch */ color: oklch(75.7% 0.127 106.5);
Tailwind
colors: {
  custom: {
    50: '#d1ca82',
    500: '#bab54c',
    950: '#000000',
  },
}
SCSS
$custom: #bab54c;
$custom-light: #d1ca82;
$custom-dark: #000000;
JSON
{
  "hex": "#bab54c",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 76
  },
  "hsl": {
    "h": 57.273,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.7566,
    "c": 0.1268,
    "h": 106.5
  },
  "luminance": 0.44009
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BAB54C

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

Preview Lab → · Contrast checker → · Palette generator →

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