#BA9A2B#BA9A2B

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

Color values

HEX#BA9A2B
RGBrgb(186, 154, 43)
HSLhsl(47, 62%, 45%)
HSVhsv(47, 77%, 73%)
CMYKcmyk(0%, 17.2%, 76.9%, 27.1%)
CIE-LABlab(64.75, 0.68, 58.73)
CIE-LCHlch(64.75, 58.73, 89.34°)
OKLaboklab(69.64% -0.0044 0.1285)
OKLCHoklch(69.64% 0.129 92)
XYZxyz(32.2432, 33.7267, 7.0967)
Luminance0.3372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9A2B #2B4BBA
analogous
#BA522B #BA9A2B #93BA2B
triadic
#BA9A2B #2BBA9A #9A2BBA
tetradic
#BA9A2B #2BBA52 #2B4BBA #BA2B93
square
#BA9A2B #2BBA52 #2B4BBA #BA2B93
split-complementary
#BA9A2B #2B93BA #522BBA
monochromatic
#574814 #887120 #BA9A2B #D6B74C #E1CB7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9A2B#FFFFFF#000000##000000
##BA9A2B1.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)
#AC9816
Deuteranopia (green-blind)
#B3A132
Tritanopia (blue-blind)
#CA8D85
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba9a2b;
/* rgb */ color: rgb(186, 154, 43);
/* oklch */ color: oklch(69.6% 0.129 92.0);
Tailwind
colors: {
  custom: {
    50: '#d3b76d',
    500: '#ba9a2b',
    950: '#000000',
  },
}
SCSS
$custom: #ba9a2b;
$custom-light: #d3b76d;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9a2b",
  "rgb": {
    "r": 186,
    "g": 154,
    "b": 43
  },
  "hsl": {
    "h": 46.573,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.6964,
    "c": 0.12856,
    "h": 92
  },
  "luminance": 0.33725
}

Semantic roles & 50–950 ramp

primary
#BA9A2B
secondary
#778ACA
accent
#67E642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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