#BAB527#BAB527

#BAB527 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.4% C 0.151 H 107.4°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#BAB527
RGBrgb(186, 181, 39)
HSLhsl(58, 65%, 44%)
HSVhsv(58, 79%, 73%)
CMYKcmyk(0%, 2.7%, 79%, 27.1%)
CIE-LABlab(71.98, -13.69, 66.61)
CIE-LCHlch(71.98, 68.00, 101.62°)
OKLaboklab(75.38% -0.0453 0.1446)
OKLCHoklch(75.38% 0.151 107.4)
XYZxyz(37.1413, 43.6347, 8.3850)
Luminance0.4363 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAB527 #272CBA
analogous
#BA6C27 #BAB527 #76BA27
triadic
#BAB527 #27BAB5 #B527BA
tetradic
#BAB527 #27BA6C #272CBA #BA2776
square
#BAB527 #27BA6C #272CBA #BA2776
split-complementary
#BAB527 #2776BA #6C27BA
monochromatic
#555312 #87841C #BAB527 #D8D346 #E3DF79

Accessibility & contrast

On white

2.16
#BAB527 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#BAB527 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAB527
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAB527#FFFFFF#000000##000000
##BAB5271.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C7B333
Tritanopia (blue-blind)
#C8A99B
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #bab527;
/* rgb */ color: rgb(186, 181, 39);
/* oklch */ color: oklch(75.4% 0.151 107.4);
Tailwind
colors: {
  custom: {
    50: '#d3ca6e',
    500: '#bab527',
    950: '#000000',
  },
}
SCSS
$custom: #bab527;
$custom-light: #d3ca6e;
$custom-dark: #000000;
JSON
{
  "hex": "#bab527",
  "rgb": {
    "r": 186,
    "g": 181,
    "b": 39
  },
  "hsl": {
    "h": 57.959,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.75379,
    "c": 0.15149,
    "h": 107.4
  },
  "luminance": 0.43633
}

Semantic roles & 50–950 ramp

primary
#BAB527
secondary
#7275CB
accent
#45E840
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #BAB527

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

Preview Lab → · Contrast checker → · Palette generator →

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