#BA982A#BA982A

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

Color values

HEX#BA982A
RGBrgb(186, 152, 42)
HSLhsl(46, 63%, 45%)
HSVhsv(46, 77%, 73%)
CMYKcmyk(0%, 18.3%, 77.4%, 27.1%)
CIE-LABlab(64.21, 1.72, 58.59)
CIE-LCHlch(64.21, 58.62, 88.32°)
OKLaboklab(69.22% -0.0015 0.128)
OKLCHoklch(69.22% 0.128 90.7)
XYZxyz(31.8977, 33.0648, 6.8921)
Luminance0.3306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA982A #2A4CBA
analogous
#BA502A #BA982A #94BA2A
triadic
#BA982A #2ABA98 #982ABA
tetradic
#BA982A #2ABA50 #2A4CBA #BA2A94
square
#BA982A #2ABA50 #2A4CBA #BA2A94
split-complementary
#BA982A #2A94BA #502ABA
monochromatic
#564613 #886F1F #BA982A #D6B54B #E2CA7D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA982A#FFFFFF#000000##000000
##BA982A1.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)
#AA9615
Deuteranopia (green-blind)
#B2A030
Tritanopia (blue-blind)
#CA8B83
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba982a;
/* rgb */ color: rgb(186, 152, 42);
/* oklch */ color: oklch(69.2% 0.128 90.7);
Tailwind
colors: {
  custom: {
    50: '#d3b56c',
    500: '#ba982a',
    950: '#000000',
  },
}
SCSS
$custom: #ba982a;
$custom-light: #d3b56c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba982a",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 42
  },
  "hsl": {
    "h": 45.833,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.69219,
    "c": 0.12799,
    "h": 90.7
  },
  "luminance": 0.33063
}

Semantic roles & 50–950 ramp

primary
#BA982A
secondary
#768ACA
accent
#68E642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA982A

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

Preview Lab → · Contrast checker → · Palette generator →

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