#BA9B2B#BA9B2B

#BA9B2B is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.8% C 0.129 H 92.6°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#BA9B2B
RGBrgb(186, 155, 43)
HSLhsl(47, 62%, 45%)
HSVhsv(47, 77%, 73%)
CMYKcmyk(0%, 16.7%, 76.9%, 27.1%)
CIE-LABlab(65.01, 0.14, 58.97)
CIE-LCHlch(65.01, 58.97, 89.87°)
OKLaboklab(69.85% -0.006 0.129)
OKLCHoklch(69.85% 0.129 92.6)
XYZxyz(32.4089, 34.0582, 7.1519)
Luminance0.3406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B2B #2B4ABA
analogous
#BA542B #BA9B2B #91BA2B
triadic
#BA9B2B #2BBA9B #9B2BBA
tetradic
#BA9B2B #2BBA54 #2B4ABA #BA2B91
square
#BA9B2B #2BBA54 #2B4ABA #BA2B91
split-complementary
#BA9B2B #2B91BA #542BBA
monochromatic
#574814 #887220 #BA9B2B #D6B84C #E1CC7E

Accessibility & contrast

On white

2.69
#BA9B2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#BA9B2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9B2B
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9B2B#FFFFFF#000000##000000
##BA9B2B1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9915
Deuteranopia (green-blind)
#B4A232
Tritanopia (blue-blind)
#C98E85
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b2b;
/* rgb */ color: rgb(186, 155, 43);
/* oklch */ color: oklch(69.8% 0.129 92.6);
Tailwind
colors: {
  custom: {
    50: '#d3b86d',
    500: '#ba9b2b',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b2b;
$custom-light: #d3b86d;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b2b",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 43
  },
  "hsl": {
    "h": 46.993,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69849,
    "c": 0.12914,
    "h": 92.6
  },
  "luminance": 0.34056
}

Semantic roles & 50–950 ramp

primary
#BA9B2B
secondary
#7789CA
accent
#66E642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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