#BA9B31#BA9B31

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

Color values

HEX#BA9B31
RGBrgb(186, 155, 49)
HSLhsl(46, 58%, 46%)
HSVhsv(46, 74%, 73%)
CMYKcmyk(0%, 16.7%, 73.7%, 27.1%)
CIE-LABlab(65.05, 0.40, 56.76)
CIE-LCHlch(65.05, 56.76, 89.60°)
OKLaboklab(69.89% -0.0045 0.1255)
OKLCHoklch(69.89% 0.126 92.1)
XYZxyz(32.5272, 34.1055, 7.7749)
Luminance0.3410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B31 #3150BA
analogous
#BA5631 #BA9B31 #94BA31
triadic
#BA9B31 #31BA9B #9B31BA
tetradic
#BA9B31 #31BA56 #3150BA #BA3194
square
#BA9B31 #31BA56 #3150BA #BA3194
split-complementary
#BA9B31 #3194BA #5631BA
monochromatic
#594A17 #8A7324 #BA9B31 #D2B656 #DFCB86

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9B31#FFFFFF#000000##000000
##BA9B311.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba9b31;
/* rgb */ color: rgb(186, 155, 49);
/* oklch */ color: oklch(69.9% 0.126 92.1);
Tailwind
colors: {
  custom: {
    50: '#d3b870',
    500: '#ba9b31',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b31;
$custom-light: #d3b870;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b31",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 49
  },
  "hsl": {
    "h": 46.423,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.6989,
    "c": 0.12558,
    "h": 92.1
  },
  "luminance": 0.34104
}

Semantic roles & 50–950 ramp

primary
#BA9B31
secondary
#7E8FC9
accent
#69E246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9B31

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

Preview Lab → · Contrast checker → · Palette generator →

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