#BA982C#BA982C

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

Color values

HEX#BA982C
RGBrgb(186, 152, 44)
HSLhsl(46, 62%, 45%)
HSVhsv(46, 76%, 73%)
CMYKcmyk(0%, 18.3%, 76.3%, 27.1%)
CIE-LABlab(64.23, 1.80, 57.87)
CIE-LCHlch(64.23, 57.90, 88.22°)
OKLaboklab(69.23% -0.0011 0.1269)
OKLCHoklch(69.23% 0.127 90.5)
XYZxyz(31.9344, 33.0794, 7.0853)
Luminance0.3308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA982C #2C4EBA
analogous
#BA512C #BA982C #95BA2C
triadic
#BA982C #2CBA98 #982CBA
tetradic
#BA982C #2CBA51 #2C4EBA #BA2C95
square
#BA982C #2CBA51 #2C4EBA #BA2C95
split-complementary
#BA982C #2C95BA #512CBA
monochromatic
#574715 #897020 #BA982C #D5B54E #E1CA80

Accessibility & contrast

On white

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

On black

7.62
#BA982C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA982C
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA982C#FFFFFF#000000##000000
##BA982C1.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba982c;
/* rgb */ color: rgb(186, 152, 44);
/* oklch */ color: oklch(69.2% 0.127 90.5);
Tailwind
colors: {
  custom: {
    50: '#d3b56d',
    500: '#ba982c',
    950: '#000000',
  },
}
SCSS
$custom: #ba982c;
$custom-light: #d3b56d;
$custom-dark: #000000;
JSON
{
  "hex": "#ba982c",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 44
  },
  "hsl": {
    "h": 45.634,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.69232,
    "c": 0.12686,
    "h": 90.5
  },
  "luminance": 0.33077
}

Semantic roles & 50–950 ramp

primary
#BA982C
secondary
#788CCA
accent
#6AE543
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA982C

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

Preview Lab → · Contrast checker → · Palette generator →

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