#BA9A2A#BA9A2A

#BA9A2A is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.6% C 0.129 H 92.1°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#BA9A2A
RGBrgb(186, 154, 42)
HSLhsl(47, 63%, 45%)
HSVhsv(47, 77%, 73%)
CMYKcmyk(0%, 17.2%, 77.4%, 27.1%)
CIE-LABlab(64.74, 0.64, 59.08)
CIE-LCHlch(64.74, 59.08, 89.38°)
OKLaboklab(69.63% -0.0046 0.129)
OKLCHoklch(69.63% 0.129 92.1)
XYZxyz(32.2251, 33.7194, 7.0012)
Luminance0.3372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9A2A #2A4ABA
analogous
#BA522A #BA9A2A #92BA2A
triadic
#BA9A2A #2ABA9A #9A2ABA
tetradic
#BA9A2A #2ABA52 #2A4ABA #BA2A92
square
#BA9A2A #2ABA52 #2A4ABA #BA2A92
split-complementary
#BA9A2A #2A92BA #522ABA
monochromatic
#564713 #88711F #BA9A2A #D6B74B #E2CB7D

Accessibility & contrast

On white

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

On black

7.74
#BA9A2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9A2A
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9A2A#FFFFFF#000000##000000
##BA9A2A1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9814
Deuteranopia (green-blind)
#B3A131
Tritanopia (blue-blind)
#CA8D85
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba9a2a;
/* rgb */ color: rgb(186, 154, 42);
/* oklch */ color: oklch(69.6% 0.129 92.1);
Tailwind
colors: {
  custom: {
    50: '#d3b76d',
    500: '#ba9a2a',
    950: '#000000',
  },
}
SCSS
$custom: #ba9a2a;
$custom-light: #d3b76d;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9a2a",
  "rgb": {
    "r": 186,
    "g": 154,
    "b": 42
  },
  "hsl": {
    "h": 46.667,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.69634,
    "c": 0.1291,
    "h": 92.1
  },
  "luminance": 0.33717
}

Semantic roles & 50–950 ramp

primary
#BA9A2A
secondary
#7689CA
accent
#66E642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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