#BA9A2F#BA9A2F

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

Color values

HEX#BA9A2F
RGBrgb(186, 154, 47)
HSLhsl(46, 60%, 46%)
HSVhsv(46, 75%, 73%)
CMYKcmyk(0%, 17.2%, 74.7%, 27.1%)
CIE-LABlab(64.77, 0.85, 57.27)
CIE-LCHlch(64.77, 57.27, 89.15°)
OKLaboklab(69.67% -0.0035 0.1262)
OKLCHoklch(69.67% 0.126 91.6)
XYZxyz(32.3202, 33.7575, 7.5023)
Luminance0.3376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9A2F #2F4FBA
analogous
#BA542F #BA9A2F #94BA2F
triadic
#BA9A2F #2FBA9A #9A2FBA
tetradic
#BA9A2F #2FBA54 #2F4FBA #BA2F94
square
#BA9A2F #2FBA54 #2F4FBA #BA2F94
split-complementary
#BA9A2F #2F94BA #542FBA
monochromatic
#584916 #897223 #BA9A2F #D3B653 #E0CB84

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9A2F#FFFFFF#000000##000000
##BA9A2F1.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)
#AB981D
Deuteranopia (green-blind)
#B3A135
Tritanopia (blue-blind)
#C98D85
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba9a2f;
/* rgb */ color: rgb(186, 154, 47);
/* oklch */ color: oklch(69.7% 0.126 91.6);
Tailwind
colors: {
  custom: {
    50: '#d3b76f',
    500: '#ba9a2f',
    950: '#000000',
  },
}
SCSS
$custom: #ba9a2f;
$custom-light: #d3b76f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9a2f",
  "rgb": {
    "r": 186,
    "g": 154,
    "b": 47
  },
  "hsl": {
    "h": 46.187,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.69668,
    "c": 0.12623,
    "h": 91.6
  },
  "luminance": 0.33756
}

Semantic roles & 50–950 ramp

primary
#BA9A2F
secondary
#7C8EC9
accent
#69E345
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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