#BAA531#BAA531

#BAA531 is a light, vivid yellow. Relative luminance 0.376; OKLCH L 72.0% C 0.132 H 98.6°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#BAA531
RGBrgb(186, 165, 49)
HSLhsl(51, 58%, 46%)
HSVhsv(51, 74%, 73%)
CMYKcmyk(0%, 11.3%, 73.7%, 27.1%)
CIE-LABlab(67.70, -4.95, 59.34)
CIE-LCHlch(67.70, 59.54, 94.77°)
OKLaboklab(71.99% -0.0198 0.131)
OKLCHoklch(71.99% 0.132 98.6)
XYZxyz(34.2609, 37.5728, 8.3528)
Luminance0.3757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA531 #3146BA
analogous
#BA6031 #BAA531 #8ABA31
triadic
#BAA531 #31BAA5 #A531BA
tetradic
#BAA531 #31BA60 #3146BA #BA318A
square
#BAA531 #31BA60 #3146BA #BA318A
split-complementary
#BAA531 #318ABA #6031BA
monochromatic
#594F17 #8A7A24 #BAA531 #D2BF56 #DFD286

Accessibility & contrast

On white

2.47
#BAA531 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#BAA531 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA531
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA531#FFFFFF#000000##000000
##BAA5311.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A11D
Deuteranopia (green-blind)
#BBA838
Tritanopia (blue-blind)
#C9988E
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #baa531;
/* rgb */ color: rgb(186, 165, 49);
/* oklch */ color: oklch(72.0% 0.132 98.6);
Tailwind
colors: {
  custom: {
    50: '#d3bf71',
    500: '#baa531',
    950: '#000000',
  },
}
SCSS
$custom: #baa531;
$custom-light: #d3bf71;
$custom-dark: #000000;
JSON
{
  "hex": "#baa531",
  "rgb": {
    "r": 186,
    "g": 165,
    "b": 49
  },
  "hsl": {
    "h": 50.803,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.71993,
    "c": 0.13246,
    "h": 98.6
  },
  "luminance": 0.37571
}

Semantic roles & 50–950 ramp

primary
#BAA531
secondary
#7E89C9
accent
#5EE246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAA531

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

Preview Lab → · Contrast checker → · Palette generator →

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