#BA9931#BA9931

#BA9931 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 69.5% C 0.124 H 90.7°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#BA9931
RGBrgb(186, 153, 49)
HSLhsl(46, 58%, 46%)
HSVhsv(46, 74%, 73%)
CMYKcmyk(0%, 17.7%, 73.7%, 27.1%)
CIE-LABlab(64.52, 1.48, 56.25)
CIE-LCHlch(64.52, 56.27, 88.49°)
OKLaboklab(69.47% -0.0014 0.1244)
OKLCHoklch(69.47% 0.124 90.7)
XYZxyz(32.1971, 33.4453, 7.6649)
Luminance0.3344 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9931 #3152BA
analogous
#BA5431 #BA9931 #96BA31
triadic
#BA9931 #31BA99 #9931BA
tetradic
#BA9931 #31BA54 #3152BA #BA3196
square
#BA9931 #31BA54 #3152BA #BA3196
split-complementary
#BA9931 #3196BA #5431BA
monochromatic
#594917 #8A7124 #BA9931 #D2B456 #DFCA86

Accessibility & contrast

On white

2.73
#BA9931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#BA9931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9931
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9931#FFFFFF#000000##000000
##BA99311.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9721
Deuteranopia (green-blind)
#B2A037
Tritanopia (blue-blind)
#C98C84
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba9931;
/* rgb */ color: rgb(186, 153, 49);
/* oklch */ color: oklch(69.5% 0.124 90.7);
Tailwind
colors: {
  custom: {
    50: '#d3b670',
    500: '#ba9931',
    950: '#000000',
  },
}
SCSS
$custom: #ba9931;
$custom-light: #d3b670;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9931",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 49
  },
  "hsl": {
    "h": 45.547,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.69475,
    "c": 0.12442,
    "h": 90.7
  },
  "luminance": 0.33443
}

Semantic roles & 50–950 ramp

primary
#BA9931
secondary
#7E90C9
accent
#6CE246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9931

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

Preview Lab → · Contrast checker → · Palette generator →

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