#BAB535#BAB535

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

Color values

HEX#BAB535
RGBrgb(186, 181, 53)
HSLhsl(58, 56%, 47%)
HSVhsv(58, 72%, 73%)
CMYKcmyk(0%, 2.7%, 71.5%, 27.1%)
CIE-LABlab(72.06, -13.11, 62.07)
CIE-LCHlch(72.06, 63.44, 101.92°)
OKLaboklab(75.46% -0.0424 0.1375)
OKLCHoklch(75.46% 0.144 107.1)
XYZxyz(37.4176, 43.7452, 9.8401)
Luminance0.4374 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB535 #353ABA
analogous
#BA7235 #BAB535 #7DBA35
triadic
#BAB535 #35BAB5 #B535BA
tetradic
#BAB535 #35BA72 #353ABA #BA357D
square
#BAB535 #35BA72 #353ABA #BA357D
split-complementary
#BAB535 #357DBA #7235BA
monochromatic
#5B581A #8A8727 #BAB535 #D0CC5C #DEDB8B

Accessibility & contrast

On white

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

On black

9.75
#BAB535 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB535
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB535#FFFFFF#000000##000000
##BAB5351.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE1E
Deuteranopia (green-blind)
#C7B33E
Tritanopia (blue-blind)
#C8A99C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab535;
/* rgb */ color: rgb(186, 181, 53);
/* oklch */ color: oklch(75.5% 0.144 107.1);
Tailwind
colors: {
  custom: {
    50: '#d2ca75',
    500: '#bab535',
    950: '#000000',
  },
}
SCSS
$custom: #bab535;
$custom-light: #d2ca75;
$custom-dark: #000000;
JSON
{
  "hex": "#bab535",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 53
  },
  "hsl": {
    "h": 57.744,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.75462,
    "c": 0.14388,
    "h": 107.1
  },
  "luminance": 0.43744
}

Semantic roles & 50–950 ramp

primary
#BAB535
secondary
#8285C8
accent
#4EDF49
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB535

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

Preview Lab → · Contrast checker → · Palette generator →

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