#BA9D33#BA9D33

#BA9D33 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 70.3% C 0.126 H 93.3°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#BA9D33
RGBrgb(186, 157, 51)
HSLhsl(47, 57%, 46%)
HSVhsv(47, 73%, 73%)
CMYKcmyk(0%, 15.6%, 72.6%, 27.1%)
CIE-LABlab(65.59, -0.58, 56.51)
CIE-LCHlch(65.59, 56.51, 90.59°)
OKLaboklab(70.32% -0.0071 0.1254)
OKLCHoklch(70.32% 0.126 93.3)
XYZxyz(32.9060, 34.7939, 8.1140)
Luminance0.3479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D33 #3350BA
analogous
#BA5A33 #BA9D33 #94BA33
triadic
#BA9D33 #33BA9D #9D33BA
tetradic
#BA9D33 #33BA5A #3350BA #BA3394
square
#BA9D33 #33BA5A #3350BA #BA3394
split-complementary
#BA9D33 #3394BA #5A33BA
monochromatic
#5A4C19 #8A7426 #BA9D33 #D1B859 #DFCC89

Accessibility & contrast

On white

2.64
#BA9D33 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#BA9D33 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9D33
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9D33#FFFFFF#000000##000000
##BA9D331.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A23
Deuteranopia (green-blind)
#B5A339
Tritanopia (blue-blind)
#C99088
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d33;
/* rgb */ color: rgb(186, 157, 51);
/* oklch */ color: oklch(70.3% 0.126 93.3);
Tailwind
colors: {
  custom: {
    50: '#d3b971',
    500: '#ba9d33',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d33;
$custom-light: #d3b971;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d33",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 51
  },
  "hsl": {
    "h": 47.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.70322,
    "c": 0.12555,
    "h": 93.3
  },
  "luminance": 0.34792
}

Semantic roles & 50–950 ramp

primary
#BA9D33
secondary
#8090C9
accent
#68E048
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9D33

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

Preview Lab → · Contrast checker → · Palette generator →

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