#BA982B#BA982B

#BA982B is a light, vivid yellow. Relative luminance 0.331; OKLCH L 69.2% C 0.127 H 90.6°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#BA982B
RGBrgb(186, 152, 43)
HSLhsl(46, 62%, 45%)
HSVhsv(46, 77%, 73%)
CMYKcmyk(0%, 18.3%, 76.9%, 27.1%)
CIE-LABlab(64.22, 1.76, 58.24)
CIE-LCHlch(64.22, 58.26, 88.27°)
OKLaboklab(69.23% -0.0013 0.1274)
OKLCHoklch(69.23% 0.127 90.6)
XYZxyz(31.9158, 33.0720, 6.9875)
Luminance0.3307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA982B #2B4DBA
analogous
#BA502B #BA982B #95BA2B
triadic
#BA982B #2BBA98 #982BBA
tetradic
#BA982B #2BBA50 #2B4DBA #BA2B95
square
#BA982B #2BBA50 #2B4DBA #BA2B95
split-complementary
#BA982B #2B95BA #502BBA
monochromatic
#574714 #886F20 #BA982B #D6B54C #E1CA7E

Accessibility & contrast

On white

2.76
#BA982B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#BA982B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA982B
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA982B#FFFFFF#000000##000000
##BA982B1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9617
Deuteranopia (green-blind)
#B2A031
Tritanopia (blue-blind)
#CA8B83
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba982b;
/* rgb */ color: rgb(186, 152, 43);
/* oklch */ color: oklch(69.2% 0.127 90.6);
Tailwind
colors: {
  custom: {
    50: '#d3b56d',
    500: '#ba982b',
    950: '#000000',
  },
}
SCSS
$custom: #ba982b;
$custom-light: #d3b56d;
$custom-dark: #000000;
JSON
{
  "hex": "#ba982b",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 43
  },
  "hsl": {
    "h": 45.734,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69226,
    "c": 0.12744,
    "h": 90.6
  },
  "luminance": 0.3307
}

Semantic roles & 50–950 ramp

primary
#BA982B
secondary
#778BCA
accent
#69E642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA982B

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

Preview Lab → · Contrast checker → · Palette generator →

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