#BAAA31#BAAA31

#BAAA31 is a light, vivid yellow. Relative luminance 0.394; OKLCH L 73.1% C 0.136 H 101.5°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#BAAA31
RGBrgb(186, 170, 49)
HSLhsl(53, 58%, 46%)
HSVhsv(53, 74%, 73%)
CMYKcmyk(0%, 8.6%, 73.7%, 27.1%)
CIE-LABlab(69.05, -7.59, 60.63)
CIE-LCHlch(69.05, 61.10, 97.14°)
OKLaboklab(73.06% -0.0273 0.1337)
OKLCHoklch(73.06% 0.136 101.5)
XYZxyz(35.1804, 39.4119, 8.6593)
Luminance0.3941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAA31 #3141BA
analogous
#BA6531 #BAAA31 #85BA31
triadic
#BAAA31 #31BAAA #AA31BA
tetradic
#BAAA31 #31BA65 #3141BA #BA3185
square
#BAAA31 #31BA65 #3141BA #BA3185
split-complementary
#BAAA31 #3185BA #6531BA
monochromatic
#595117 #8A7E24 #BAAA31 #D2C456 #DFD586

Accessibility & contrast

On white

2.36
#BAAA31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#BAAA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAA31
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAA31#FFFFFF#000000##000000
##BAAA311.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51B
Deuteranopia (green-blind)
#BFAB39
Tritanopia (blue-blind)
#C89E92
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #baaa31;
/* rgb */ color: rgb(186, 170, 49);
/* oklch */ color: oklch(73.1% 0.136 101.5);
Tailwind
colors: {
  custom: {
    50: '#d2c272',
    500: '#baaa31',
    950: '#000000',
  },
}
SCSS
$custom: #baaa31;
$custom-light: #d2c272;
$custom-dark: #000000;
JSON
{
  "hex": "#baaa31",
  "rgb": {
    "r": 186,
    "g": 170,
    "b": 49
  },
  "hsl": {
    "h": 52.993,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73059,
    "c": 0.13645,
    "h": 101.5
  },
  "luminance": 0.3941
}

Semantic roles & 50–950 ramp

primary
#BAAA31
secondary
#7E87C9
accent
#58E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAAA31

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

Preview Lab → · Contrast checker → · Palette generator →

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