#BA982F#BA982F

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

Color values

HEX#BA982F
RGBrgb(186, 152, 47)
HSLhsl(45, 60%, 46%)
HSVhsv(45, 75%, 73%)
CMYKcmyk(0%, 18.3%, 74.7%, 27.1%)
CIE-LABlab(64.24, 1.93, 56.76)
CIE-LCHlch(64.24, 56.79, 88.05°)
OKLaboklab(69.25% -0.0004 0.1251)
OKLCHoklch(69.25% 0.125 90.2)
XYZxyz(31.9929, 33.1028, 7.3932)
Luminance0.3310 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA982F #2F51BA
analogous
#BA522F #BA982F #96BA2F
triadic
#BA982F #2FBA98 #982FBA
tetradic
#BA982F #2FBA52 #2F51BA #BA2F96
square
#BA982F #2FBA52 #2F51BA #BA2F96
split-complementary
#BA982F #2F96BA #522FBA
monochromatic
#584816 #897023 #BA982F #D3B453 #E0C984

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA982F#FFFFFF#000000##000000
##BA982F1.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)
#AA961E
Deuteranopia (green-blind)
#B2A035
Tritanopia (blue-blind)
#C98B83
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba982f;
/* rgb */ color: rgb(186, 152, 47);
/* oklch */ color: oklch(69.3% 0.125 90.2);
Tailwind
colors: {
  custom: {
    50: '#d3b66f',
    500: '#ba982f',
    950: '#000000',
  },
}
SCSS
$custom: #ba982f;
$custom-light: #d3b66f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba982f",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 47
  },
  "hsl": {
    "h": 45.324,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.69253,
    "c": 0.1251,
    "h": 90.2
  },
  "luminance": 0.33101
}

Semantic roles & 50–950 ramp

primary
#BA982F
secondary
#7C8FC9
accent
#6CE345
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA982F

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

Preview Lab → · Contrast checker → · Palette generator →

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