#BA972E#BA972E

#BA972E is a light, vivid yellow. Relative luminance 0.328; OKLCH L 69.0% C 0.125 H 89.6°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#BA972E
RGBrgb(186, 151, 46)
HSLhsl(45, 60%, 45%)
HSVhsv(45, 75%, 73%)
CMYKcmyk(0%, 18.8%, 75.3%, 27.1%)
CIE-LABlab(63.98, 2.43, 56.88)
CIE-LCHlch(63.98, 56.94, 87.56°)
OKLaboklab(69.04% 0.0009 0.1252)
OKLCHoklch(69.04% 0.125 89.6)
XYZxyz(31.8113, 32.7716, 7.2343)
Luminance0.3277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA972E #2E51BA
analogous
#BA512E #BA972E #97BA2E
triadic
#BA972E #2EBA97 #972EBA
tetradic
#BA972E #2EBA51 #2E51BA #BA2E97
square
#BA972E #2EBA51 #2E51BA #BA2E97
split-complementary
#BA972E #2E97BA #512EBA
monochromatic
#584716 #896F22 #BA972E #D4B351 #E0C982

Accessibility & contrast

On white

2.78
#BA972E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#BA972E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA972E
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA972E#FFFFFF#000000##000000
##BA972E1.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9951C
Deuteranopia (green-blind)
#B19F34
Tritanopia (blue-blind)
#CA8A82
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba972e;
/* rgb */ color: rgb(186, 151, 46);
/* oklch */ color: oklch(69.0% 0.125 89.6);
Tailwind
colors: {
  custom: {
    50: '#d3b56e',
    500: '#ba972e',
    950: '#000000',
  },
}
SCSS
$custom: #ba972e;
$custom-light: #d3b56e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba972e",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 46
  },
  "hsl": {
    "h": 45,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.69039,
    "c": 0.12516,
    "h": 89.6
  },
  "luminance": 0.3277
}

Semantic roles & 50–950 ramp

primary
#BA972E
secondary
#7B8EC9
accent
#6CE344
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA972E

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

Preview Lab → · Contrast checker → · Palette generator →

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