#BA9D34#BA9D34

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

Color values

HEX#BA9D34
RGBrgb(186, 157, 52)
HSLhsl(47, 56%, 47%)
HSVhsv(47, 72%, 73%)
CMYKcmyk(0%, 15.6%, 72%, 27.1%)
CIE-LABlab(65.59, -0.54, 56.11)
CIE-LCHlch(65.59, 56.12, 90.55°)
OKLaboklab(70.33% -0.0069 0.1247)
OKLCHoklch(70.33% 0.125 93.2)
XYZxyz(32.9283, 34.8029, 8.2314)
Luminance0.3480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D34 #3451BA
analogous
#BA5A34 #BA9D34 #94BA34
triadic
#BA9D34 #34BA9D #9D34BA
tetradic
#BA9D34 #34BA5A #3451BA #BA3494
square
#BA9D34 #34BA5A #3451BA #BA3494
split-complementary
#BA9D34 #3494BA #5A34BA
monochromatic
#5A4C19 #8A7527 #BA9D34 #D1B75A #DECC8A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9D34#FFFFFF#000000##000000
##BA9D341.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)
#AE9A24
Deuteranopia (green-blind)
#B5A33A
Tritanopia (blue-blind)
#C99088
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d34;
/* rgb */ color: rgb(186, 157, 52);
/* oklch */ color: oklch(70.3% 0.125 93.2);
Tailwind
colors: {
  custom: {
    50: '#d3b972',
    500: '#ba9d34',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d34;
$custom-light: #d3b972;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d34",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 52
  },
  "hsl": {
    "h": 47.015,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.7033,
    "c": 0.1249,
    "h": 93.2
  },
  "luminance": 0.34801
}

Semantic roles & 50–950 ramp

primary
#BA9D34
secondary
#8191C8
accent
#69E048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9D34

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

Preview Lab → · Contrast checker → · Palette generator →

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