#BAA031#BAA031

#BAA031 is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.9% C 0.129 H 95.4°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#BAA031
RGBrgb(186, 160, 49)
HSLhsl(49, 58%, 46%)
HSVhsv(49, 74%, 73%)
CMYKcmyk(0%, 14%, 73.7%, 27.1%)
CIE-LABlab(66.37, -2.29, 58.05)
CIE-LCHlch(66.37, 58.09, 92.26°)
OKLaboklab(70.94% -0.0122 0.1282)
OKLCHoklch(70.94% 0.129 95.4)
XYZxyz(33.3766, 35.8043, 8.0580)
Luminance0.3580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BAA031 #314BBA
analogous
#BA5B31 #BAA031 #8FBA31
triadic
#BAA031 #31BAA0 #A031BA
tetradic
#BAA031 #31BA5B #314BBA #BA318F
square
#BAA031 #31BA5B #314BBA #BA318F
split-complementary
#BAA031 #318FBA #5B31BA
monochromatic
#594D17 #8A7624 #BAA031 #D2BB56 #DFCE86

Accessibility & contrast

On white

2.57
#BAA031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#BAA031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BAA031
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BAA031#FFFFFF#000000##000000
##BAA0311.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D1F
Deuteranopia (green-blind)
#B7A538
Tritanopia (blue-blind)
#C9938A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #baa031;
/* rgb */ color: rgb(186, 160, 49);
/* oklch */ color: oklch(70.9% 0.129 95.4);
Tailwind
colors: {
  custom: {
    50: '#d3bb71',
    500: '#baa031',
    950: '#000000',
  },
}
SCSS
$custom: #baa031;
$custom-light: #d3bb71;
$custom-dark: #000000;
JSON
{
  "hex": "#baa031",
  "rgb": {
    "r": 186,
    "g": 160,
    "b": 49
  },
  "hsl": {
    "h": 48.613,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.70936,
    "c": 0.12881,
    "h": 95.4
  },
  "luminance": 0.35802
}

Semantic roles & 50–950 ramp

primary
#BAA031
secondary
#7E8CC9
accent
#64E246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BAA031

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

Preview Lab → · Contrast checker → · Palette generator →

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