#BAAC31#BAAC31

#BAAC31 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.5% C 0.138 H 102.6°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#BAAC31
RGBrgb(186, 172, 49)
HSLhsl(54, 58%, 46%)
HSVhsv(54, 74%, 73%)
CMYKcmyk(0%, 7.5%, 73.7%, 27.1%)
CIE-LABlab(69.59, -8.64, 61.14)
CIE-LCHlch(69.59, 61.75, 98.04°)
OKLaboklab(73.49% -0.0302 0.1348)
OKLCHoklch(73.49% 0.138 102.6)
XYZxyz(35.5582, 40.1674, 8.7852)
Luminance0.4017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAC31 #313FBA
analogous
#BA6731 #BAAC31 #83BA31
triadic
#BAAC31 #31BAAC #AC31BA
tetradic
#BAAC31 #31BA67 #313FBA #BA3183
square
#BAAC31 #31BA67 #313FBA #BA3183
split-complementary
#BAAC31 #3183BA #6731BA
monochromatic
#595217 #8A7F24 #BAAC31 #D2C656 #DFD686

Accessibility & contrast

On white

2.32
#BAAC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#BAAC31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAC31
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAC31#FFFFFF#000000##000000
##BAAC311.002.329.039.03
#FFFFFF2.321.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA61A
Deuteranopia (green-blind)
#C0AD3A
Tritanopia (blue-blind)
#C8A094
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #baac31;
/* rgb */ color: rgb(186, 172, 49);
/* oklch */ color: oklch(73.5% 0.138 102.6);
Tailwind
colors: {
  custom: {
    50: '#d2c472',
    500: '#baac31',
    950: '#000000',
  },
}
SCSS
$custom: #baac31;
$custom-light: #d2c472;
$custom-dark: #000000;
JSON
{
  "hex": "#baac31",
  "rgb": {
    "r": 186,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 53.869,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73488,
    "c": 0.13815,
    "h": 102.6
  },
  "luminance": 0.40166
}

Semantic roles & 50–950 ramp

primary
#BAAC31
secondary
#7E86C9
accent
#56E246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAAC31

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

Preview Lab → · Contrast checker → · Palette generator →

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