#BA9A31#BA9A31

#BA9A31 is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.7% C 0.125 H 91.4°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#BA9A31
RGBrgb(186, 154, 49)
HSLhsl(46, 58%, 46%)
HSVhsv(46, 74%, 73%)
CMYKcmyk(0%, 17.2%, 73.7%, 27.1%)
CIE-LABlab(64.78, 0.94, 56.50)
CIE-LCHlch(64.78, 56.51, 89.05°)
OKLaboklab(69.68% -0.003 0.125)
OKLCHoklch(69.68% 0.125 91.4)
XYZxyz(32.3615, 33.7740, 7.7197)
Luminance0.3377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9A31 #3151BA
analogous
#BA5531 #BA9A31 #95BA31
triadic
#BA9A31 #31BA9A #9A31BA
tetradic
#BA9A31 #31BA55 #3151BA #BA3195
square
#BA9A31 #31BA55 #3151BA #BA3195
split-complementary
#BA9A31 #3195BA #5531BA
monochromatic
#594A17 #8A7224 #BA9A31 #D2B556 #DFCA86

Accessibility & contrast

On white

2.71
#BA9A31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#BA9A31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9A31
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9A31#FFFFFF#000000##000000
##BA9A311.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9821
Deuteranopia (green-blind)
#B3A137
Tritanopia (blue-blind)
#C98D85
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba9a31;
/* rgb */ color: rgb(186, 154, 49);
/* oklch */ color: oklch(69.7% 0.125 91.4);
Tailwind
colors: {
  custom: {
    50: '#d3b770',
    500: '#ba9a31',
    950: '#000000',
  },
}
SCSS
$custom: #ba9a31;
$custom-light: #d3b770;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9a31",
  "rgb": {
    "r": 186,
    "g": 154,
    "b": 49
  },
  "hsl": {
    "h": 45.985,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.69682,
    "c": 0.125,
    "h": 91.4
  },
  "luminance": 0.33772
}

Semantic roles & 50–950 ramp

primary
#BA9A31
secondary
#7E8FC9
accent
#6BE246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9A31

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

Preview Lab → · Contrast checker → · Palette generator →

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