#BAAB31#BAAB31

#BAAB31 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 73.3% C 0.137 H 102.1°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#BAAB31
RGBrgb(186, 171, 49)
HSLhsl(53, 58%, 46%)
HSVhsv(53, 74%, 73%)
CMYKcmyk(0%, 8.1%, 73.7%, 27.1%)
CIE-LABlab(69.32, -8.12, 60.89)
CIE-LCHlch(69.32, 61.42, 97.59°)
OKLaboklab(73.27% -0.0287 0.1343)
OKLCHoklch(73.27% 0.137 102.1)
XYZxyz(35.3686, 39.7882, 8.7220)
Luminance0.3979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAAB31 #3140BA
analogous
#BA6631 #BAAB31 #84BA31
triadic
#BAAB31 #31BAAB #AB31BA
tetradic
#BAAB31 #31BA66 #3140BA #BA3184
square
#BAAB31 #31BA66 #3140BA #BA3184
split-complementary
#BAAB31 #3184BA #6631BA
monochromatic
#595217 #8A7E24 #BAAB31 #D2C556 #DFD586

Accessibility & contrast

On white

2.34
#BAAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#BAAB31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAAB31
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAAB31#FFFFFF#000000##000000
##BAAB311.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA61B
Deuteranopia (green-blind)
#BFAC39
Tritanopia (blue-blind)
#C89F93
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #baab31;
/* rgb */ color: rgb(186, 171, 49);
/* oklch */ color: oklch(73.3% 0.137 102.1);
Tailwind
colors: {
  custom: {
    50: '#d2c372',
    500: '#baab31',
    950: '#000000',
  },
}
SCSS
$custom: #baab31;
$custom-light: #d2c372;
$custom-dark: #000000;
JSON
{
  "hex": "#baab31",
  "rgb": {
    "r": 186,
    "g": 171,
    "b": 49
  },
  "hsl": {
    "h": 53.431,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.73274,
    "c": 0.13729,
    "h": 102.1
  },
  "luminance": 0.39787
}

Semantic roles & 50–950 ramp

primary
#BAAB31
secondary
#7E86C9
accent
#57E246
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B

Preview Lab

Preview with #BAAB31

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

Preview Lab → · Contrast checker → · Palette generator →

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