#BA972D#BA972D

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

Color values

HEX#BA972D
RGBrgb(186, 151, 45)
HSLhsl(45, 61%, 45%)
HSVhsv(45, 76%, 73%)
CMYKcmyk(0%, 18.8%, 75.8%, 27.1%)
CIE-LABlab(63.97, 2.38, 57.26)
CIE-LCHlch(63.97, 57.31, 87.62°)
OKLaboklab(69.03% 0.0007 0.1258)
OKLCHoklch(69.03% 0.126 89.7)
XYZxyz(31.7918, 32.7638, 7.1317)
Luminance0.3276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA972D #2D50BA
analogous
#BA502D #BA972D #97BA2D
triadic
#BA972D #2DBA97 #972DBA
tetradic
#BA972D #2DBA50 #2D50BA #BA2D97
square
#BA972D #2DBA50 #2D50BA #BA2D97
split-complementary
#BA972D #2D97BA #502DBA
monochromatic
#574715 #896F21 #BA972D #D5B450 #E0C981

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA972D#FFFFFF#000000##000000
##BA972D1.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)
#A9951B
Deuteranopia (green-blind)
#B19F33
Tritanopia (blue-blind)
#CA8A82
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba972d;
/* rgb */ color: rgb(186, 151, 45);
/* oklch */ color: oklch(69.0% 0.126 89.7);
Tailwind
colors: {
  custom: {
    50: '#d3b56e',
    500: '#ba972d',
    950: '#000000',
  },
}
SCSS
$custom: #ba972d;
$custom-light: #d3b56e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba972d",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 45
  },
  "hsl": {
    "h": 45.106,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.69032,
    "c": 0.12576,
    "h": 89.7
  },
  "luminance": 0.32762
}

Semantic roles & 50–950 ramp

primary
#BA972D
secondary
#798DC9
accent
#6BE444
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA972D

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

Preview Lab → · Contrast checker → · Palette generator →

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