#BA9B33#BA9B33

#BA9B33 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.9% C 0.124 H 91.9°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#BA9B33
RGBrgb(186, 155, 51)
HSLhsl(46, 57%, 46%)
HSVhsv(46, 73%, 73%)
CMYKcmyk(0%, 16.7%, 72.6%, 27.1%)
CIE-LABlab(65.06, 0.49, 55.98)
CIE-LCHlch(65.06, 55.99, 89.49°)
OKLaboklab(69.91% -0.004 0.1242)
OKLCHoklch(69.91% 0.124 91.9)
XYZxyz(32.5704, 34.1227, 8.0021)
Luminance0.3412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B33 #3352BA
analogous
#BA5833 #BA9B33 #96BA33
triadic
#BA9B33 #33BA9B #9B33BA
tetradic
#BA9B33 #33BA58 #3352BA #BA3396
square
#BA9B33 #33BA58 #3352BA #BA3396
split-complementary
#BA9B33 #3396BA #5833BA
monochromatic
#5A4B19 #8A7326 #BA9B33 #D1B659 #DFCB89

Accessibility & contrast

On white

2.68
#BA9B33 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#BA9B33 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9B33
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9B33#FFFFFF#000000##000000
##BA9B331.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9923
Deuteranopia (green-blind)
#B4A239
Tritanopia (blue-blind)
#C98E86
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b33;
/* rgb */ color: rgb(186, 155, 51);
/* oklch */ color: oklch(69.9% 0.124 91.9);
Tailwind
colors: {
  custom: {
    50: '#d3b871',
    500: '#ba9b33',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b33;
$custom-light: #d3b871;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b33",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 51
  },
  "hsl": {
    "h": 46.222,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.69905,
    "c": 0.12431,
    "h": 91.9
  },
  "luminance": 0.34121
}

Semantic roles & 50–950 ramp

primary
#BA9B33
secondary
#8091C9
accent
#6BE048
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9B33

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

Preview Lab → · Contrast checker → · Palette generator →

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