#BAB539#BAB539

#BAB539 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.5% C 0.141 H 107.1°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#BAB539
RGBrgb(186, 181, 57)
HSLhsl(58, 53%, 48%)
HSVhsv(58, 69%, 73%)
CMYKcmyk(0%, 2.7%, 69.4%, 27.1%)
CIE-LABlab(72.08, -12.91, 60.61)
CIE-LCHlch(72.08, 61.97, 102.02°)
OKLaboklab(75.49% -0.0414 0.1351)
OKLCHoklch(75.49% 0.141 107.1)
XYZxyz(37.5135, 43.7835, 10.3451)
Luminance0.4378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB539 #393EBA
analogous
#BA7439 #BAB539 #7FBA39
triadic
#BAB539 #39BAB5 #B539BA
tetradic
#BAB539 #39BA74 #393EBA #BA397F
square
#BAB539 #39BA74 #393EBA #BA397F
split-complementary
#BAB539 #397FBA #7439BA
monochromatic
#5C5A1C #8B872B #BAB539 #CFCA61 #DDDA90

Accessibility & contrast

On white

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

On black

9.76
#BAB539 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB539
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB539#FFFFFF#000000##000000
##BAB5391.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE25
Deuteranopia (green-blind)
#C7B342
Tritanopia (blue-blind)
#C7A99C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab539;
/* rgb */ color: rgb(186, 181, 57);
/* oklch */ color: oklch(75.5% 0.141 107.1);
Tailwind
colors: {
  custom: {
    50: '#d2ca77',
    500: '#bab539',
    950: '#000000',
  },
}
SCSS
$custom: #bab539;
$custom-light: #d2ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#bab539",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 57
  },
  "hsl": {
    "h": 57.674,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.75491,
    "c": 0.14131,
    "h": 107.1
  },
  "luminance": 0.43782
}

Semantic roles & 50–950 ramp

primary
#BAB539
secondary
#8789C8
accent
#51DC4B
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB539

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

Preview Lab → · Contrast checker → · Palette generator →

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