#BA9B2A#BA9B2A

#BA9B2A is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.8% C 0.130 H 92.7°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#BA9B2A
RGBrgb(186, 155, 42)
HSLhsl(47, 63%, 45%)
HSVhsv(47, 77%, 73%)
CMYKcmyk(0%, 16.7%, 77.4%, 27.1%)
CIE-LABlab(65.00, 0.10, 59.33)
CIE-LCHlch(65.00, 59.33, 89.91°)
OKLaboklab(69.84% -0.0062 0.1296)
OKLCHoklch(69.84% 0.13 92.7)
XYZxyz(32.3908, 34.0509, 7.0565)
Luminance0.3405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B2A #2A49BA
analogous
#BA532A #BA9B2A #91BA2A
triadic
#BA9B2A #2ABA9B #9B2ABA
tetradic
#BA9B2A #2ABA53 #2A49BA #BA2A91
square
#BA9B2A #2ABA53 #2A49BA #BA2A91
split-complementary
#BA9B2A #2A91BA #532ABA
monochromatic
#564813 #88711F #BA9B2A #D6B84B #E2CC7D

Accessibility & contrast

On white

2.69
#BA9B2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#BA9B2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9B2A
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9B2A#FFFFFF#000000##000000
##BA9B2A1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9813
Deuteranopia (green-blind)
#B4A231
Tritanopia (blue-blind)
#C98E85
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b2a;
/* rgb */ color: rgb(186, 155, 42);
/* oklch */ color: oklch(69.8% 0.130 92.7);
Tailwind
colors: {
  custom: {
    50: '#d3b86d',
    500: '#ba9b2a',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b2a;
$custom-light: #d3b86d;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b2a",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 42
  },
  "hsl": {
    "h": 47.083,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.69842,
    "c": 0.1297,
    "h": 92.7
  },
  "luminance": 0.34049
}

Semantic roles & 50–950 ramp

primary
#BA9B2A
secondary
#7688CA
accent
#65E642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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