#BAB541#BAB541

#BAB541 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.6% C 0.136 H 106.9°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#BAB541
RGBrgb(186, 181, 65)
HSLhsl(58, 48%, 49%)
HSVhsv(58, 65%, 73%)
CMYKcmyk(0%, 2.7%, 65.1%, 27.1%)
CIE-LABlab(72.14, -12.45, 57.48)
CIE-LCHlch(72.14, 58.82, 102.23°)
OKLaboklab(75.56% -0.0393 0.1298)
OKLCHoklch(75.56% 0.136 106.9)
XYZxyz(37.7290, 43.8697, 11.4803)
Luminance0.4387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB541 #4146BA
analogous
#BA7941 #BAB541 #83BA41
triadic
#BAB541 #41BAB5 #B541BA
tetradic
#BAB541 #41BA79 #4146BA #BA4183
square
#BAB541 #41BA79 #4146BA #BA4183
split-complementary
#BAB541 #4183BA #7941BA
monochromatic
#5F5D21 #8D8931 #BAB541 #CCC86C #DCD99A

Accessibility & contrast

On white

2.15
#BAB541 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.77
#BAB541 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB541
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB541#FFFFFF#000000##000000
##BAB5411.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE32
Deuteranopia (green-blind)
#C6B348
Tritanopia (blue-blind)
#C7AA9D
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab541;
/* rgb */ color: rgb(186, 181, 65);
/* oklch */ color: oklch(75.6% 0.136 106.9);
Tailwind
colors: {
  custom: {
    50: '#d2ca7c',
    500: '#bab541',
    950: '#000000',
  },
}
SCSS
$custom: #bab541;
$custom-light: #d2ca7c;
$custom-dark: #000000;
JSON
{
  "hex": "#bab541",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 65
  },
  "hsl": {
    "h": 57.521,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.75555,
    "c": 0.13566,
    "h": 106.9
  },
  "luminance": 0.43869
}

Semantic roles & 50–950 ramp

primary
#BAB541
secondary
#8F92C8
accent
#56D850
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB541

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

Preview Lab → · Contrast checker → · Palette generator →

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