#BAB538#BAB538

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

Color values

HEX#BAB538
RGBrgb(186, 181, 56)
HSLhsl(58, 54%, 47%)
HSVhsv(58, 70%, 73%)
CMYKcmyk(0%, 2.7%, 69.9%, 27.1%)
CIE-LABlab(72.08, -12.96, 60.98)
CIE-LCHlch(72.08, 62.34, 102.00°)
OKLaboklab(75.48% -0.0417 0.1357)
OKLCHoklch(75.48% 0.142 107.1)
XYZxyz(37.4888, 43.7736, 10.2150)
Luminance0.4377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB538 #383DBA
analogous
#BA7438 #BAB538 #7EBA38
triadic
#BAB538 #38BAB5 #B538BA
tetradic
#BAB538 #38BA74 #383DBA #BA387E
square
#BAB538 #38BA74 #383DBA #BA387E
split-complementary
#BAB538 #387EBA #7438BA
monochromatic
#5C591C #8B872A #BAB538 #CFCB60 #DDDA8F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BAB538#FFFFFF#000000##000000
##BAB5381.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)
#C4AE24
Deuteranopia (green-blind)
#C7B341
Tritanopia (blue-blind)
#C7A99C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #bab538;
/* rgb */ color: rgb(186, 181, 56);
/* oklch */ color: oklch(75.5% 0.142 107.1);
Tailwind
colors: {
  custom: {
    50: '#d2ca77',
    500: '#bab538',
    950: '#000000',
  },
}
SCSS
$custom: #bab538;
$custom-light: #d2ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#bab538",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 57.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.75483,
    "c": 0.14198,
    "h": 107.1
  },
  "luminance": 0.43772
}

Semantic roles & 50–950 ramp

primary
#BAB538
secondary
#8688C8
accent
#50DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151309
muted
#83827B

Preview Lab

Preview with #BAB538

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

Preview Lab → · Contrast checker → · Palette generator →

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