#BAB540#BAB540

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

Color values

HEX#BAB540
RGBrgb(186, 181, 64)
HSLhsl(58, 49%, 49%)
HSVhsv(58, 66%, 73%)
CMYKcmyk(0%, 2.7%, 65.6%, 27.1%)
CIE-LABlab(72.13, -12.52, 57.89)
CIE-LCHlch(72.13, 59.22, 102.20°)
OKLaboklab(75.55% -0.0396 0.1305)
OKLCHoklch(75.55% 0.136 106.9)
XYZxyz(37.7003, 43.8583, 11.3291)
Luminance0.4386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB540 #4045BA
analogous
#BA7840 #BAB540 #82BA40
triadic
#BAB540 #40BAB5 #B540BA
tetradic
#BAB540 #40BA78 #4045BA #BA4082
square
#BAB540 #40BA78 #4045BA #BA4082
split-complementary
#BAB540 #4082BA #7840BA
monochromatic
#5F5C21 #8C8930 #BAB540 #CCC86B #DCD999

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB540#FFFFFF#000000##000000
##BAB5401.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)
#C4AE30
Deuteranopia (green-blind)
#C6B347
Tritanopia (blue-blind)
#C7A99D
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab540;
/* rgb */ color: rgb(186, 181, 64);
/* oklch */ color: oklch(75.5% 0.136 106.9);
Tailwind
colors: {
  custom: {
    50: '#d2ca7b',
    500: '#bab540',
    950: '#000000',
  },
}
SCSS
$custom: #bab540;
$custom-light: #d2ca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#bab540",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 57.541,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.75546,
    "c": 0.1364,
    "h": 106.9
  },
  "luminance": 0.43857
}

Semantic roles & 50–950 ramp

primary
#BAB540
secondary
#8E91C8
accent
#55D84F
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C

Preview Lab

Preview with #BAB540

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

Preview Lab → · Contrast checker → · Palette generator →

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