#BA9C31#BA9C31

#BA9C31 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 70.1% C 0.126 H 92.8°. Best body text is #000000 at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#BA9C31
RGBrgb(186, 156, 49)
HSLhsl(47, 58%, 46%)
HSVhsv(47, 74%, 73%)
CMYKcmyk(0%, 16.1%, 73.7%, 27.1%)
CIE-LABlab(65.31, -0.14, 57.02)
CIE-LCHlch(65.31, 57.02, 90.14°)
OKLaboklab(70.1% -0.0061 0.1261)
OKLCHoklch(70.1% 0.126 92.8)
XYZxyz(32.6943, 34.4397, 7.8306)
Luminance0.3444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9C31 #314FBA
analogous
#BA5731 #BA9C31 #93BA31
triadic
#BA9C31 #31BA9C #9C31BA
tetradic
#BA9C31 #31BA57 #314FBA #BA3193
square
#BA9C31 #31BA57 #314FBA #BA3193
split-complementary
#BA9C31 #3193BA #5731BA
monochromatic
#594B17 #8A7324 #BA9C31 #D2B756 #DFCC86

Accessibility & contrast

On white

2.66
#BA9C31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.89
#BA9C31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9C31
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9C31#FFFFFF#000000##000000
##BA9C311.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9920
Deuteranopia (green-blind)
#B5A237
Tritanopia (blue-blind)
#C98F87
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9c31;
/* rgb */ color: rgb(186, 156, 49);
/* oklch */ color: oklch(70.1% 0.126 92.8);
Tailwind
colors: {
  custom: {
    50: '#d3b870',
    500: '#ba9c31',
    950: '#000000',
  },
}
SCSS
$custom: #ba9c31;
$custom-light: #d3b870;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9c31",
  "rgb": {
    "r": 186,
    "g": 156,
    "b": 49
  },
  "hsl": {
    "h": 46.861,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.70098,
    "c": 0.1262,
    "h": 92.8
  },
  "luminance": 0.34438
}

Semantic roles & 50–950 ramp

primary
#BA9C31
secondary
#7E8EC9
accent
#68E246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9C31

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

Preview Lab → · Contrast checker → · Palette generator →

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