#BA9A2D#BA9A2D

#BA9A2D is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.7% C 0.127 H 91.8°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#BA9A2D
RGBrgb(186, 154, 45)
HSLhsl(46, 61%, 45%)
HSVhsv(46, 76%, 73%)
CMYKcmyk(0%, 17.2%, 75.8%, 27.1%)
CIE-LABlab(64.76, 0.76, 58.01)
CIE-LCHlch(64.76, 58.01, 89.25°)
OKLaboklab(69.65% -0.004 0.1274)
OKLCHoklch(69.65% 0.127 91.8)
XYZxyz(32.2808, 33.7417, 7.2947)
Luminance0.3374 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9A2D #2D4DBA
analogous
#BA532D #BA9A2D #93BA2D
triadic
#BA9A2D #2DBA9A #9A2DBA
tetradic
#BA9A2D #2DBA53 #2D4DBA #BA2D93
square
#BA9A2D #2DBA53 #2D4DBA #BA2D93
split-complementary
#BA9A2D #2D93BA #532DBA
monochromatic
#574815 #897121 #BA9A2D #D5B650 #E0CB81

Accessibility & contrast

On white

2.71
#BA9A2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#BA9A2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9A2D
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9A2D#FFFFFF#000000##000000
##BA9A2D1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB981A
Deuteranopia (green-blind)
#B3A133
Tritanopia (blue-blind)
#C98D85
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba9a2d;
/* rgb */ color: rgb(186, 154, 45);
/* oklch */ color: oklch(69.7% 0.127 91.8);
Tailwind
colors: {
  custom: {
    50: '#d3b76e',
    500: '#ba9a2d',
    950: '#000000',
  },
}
SCSS
$custom: #ba9a2d;
$custom-light: #d3b76e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9a2d",
  "rgb": {
    "r": 186,
    "g": 154,
    "b": 45
  },
  "hsl": {
    "h": 46.383,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.69654,
    "c": 0.12741,
    "h": 91.8
  },
  "luminance": 0.3374
}

Semantic roles & 50–950 ramp

primary
#BA9A2D
secondary
#798CC9
accent
#68E444
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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