#BA962A#BA962A

#BA962A is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.8% C 0.127 H 89.3°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#BA962A
RGBrgb(186, 150, 42)
HSLhsl(45, 63%, 45%)
HSVhsv(45, 77%, 73%)
CMYKcmyk(0%, 19.4%, 77.4%, 27.1%)
CIE-LABlab(63.69, 2.80, 58.10)
CIE-LCHlch(63.69, 58.17, 87.24°)
OKLaboklab(68.81% 0.0016 0.1269)
OKLCHoklch(68.81% 0.127 89.3)
XYZxyz(31.5759, 32.4210, 6.7848)
Luminance0.3242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA962A #2A4EBA
analogous
#BA4E2A #BA962A #96BA2A
triadic
#BA962A #2ABA96 #962ABA
tetradic
#BA962A #2ABA4E #2A4EBA #BA2A96
square
#BA962A #2ABA4E #2A4EBA #BA2A96
split-complementary
#BA962A #2A96BA #4E2ABA
monochromatic
#564513 #886E1F #BA962A #D6B34B #E2C87D

Accessibility & contrast

On white

2.81
#BA962A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#BA962A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA962A
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA962A#FFFFFF#000000##000000
##BA962A1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89416
Deuteranopia (green-blind)
#B19E30
Tritanopia (blue-blind)
#CA8981
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba962a;
/* rgb */ color: rgb(186, 150, 42);
/* oklch */ color: oklch(68.8% 0.127 89.3);
Tailwind
colors: {
  custom: {
    50: '#d3b46c',
    500: '#ba962a',
    950: '#000000',
  },
}
SCSS
$custom: #ba962a;
$custom-light: #d3b46c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba962a",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 42
  },
  "hsl": {
    "h": 45,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.68806,
    "c": 0.12695,
    "h": 89.3
  },
  "luminance": 0.32419
}

Semantic roles & 50–950 ramp

primary
#BA962A
secondary
#768BCA
accent
#6BE642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA962A

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

Preview Lab → · Contrast checker → · Palette generator →

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