#BA9D31#BA9D31

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

Color values

HEX#BA9D31
RGBrgb(186, 157, 49)
HSLhsl(47, 58%, 46%)
HSVhsv(47, 74%, 73%)
CMYKcmyk(0%, 15.6%, 73.7%, 27.1%)
CIE-LABlab(65.57, -0.68, 57.28)
CIE-LCHlch(65.57, 57.28, 90.68°)
OKLaboklab(70.31% -0.0076 0.1266)
OKLCHoklch(70.31% 0.127 93.4)
XYZxyz(32.8628, 34.7767, 7.8868)
Luminance0.3478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D31 #314EBA
analogous
#BA5831 #BA9D31 #92BA31
triadic
#BA9D31 #31BA9D #9D31BA
tetradic
#BA9D31 #31BA58 #314EBA #BA3192
square
#BA9D31 #31BA58 #314EBA #BA3192
split-complementary
#BA9D31 #3192BA #5831BA
monochromatic
#594B17 #8A7424 #BA9D31 #D2B856 #DFCC86

Accessibility & contrast

On white

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

On black

7.95
#BA9D31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9D31
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9D31#FFFFFF#000000##000000
##BA9D311.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba9d31;
/* rgb */ color: rgb(186, 157, 49);
/* oklch */ color: oklch(70.3% 0.127 93.4);
Tailwind
colors: {
  custom: {
    50: '#d3b970',
    500: '#ba9d31',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d31;
$custom-light: #d3b970;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d31",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 49
  },
  "hsl": {
    "h": 47.299,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.70307,
    "c": 0.12682,
    "h": 93.4
  },
  "luminance": 0.34775
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA9D31

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

Preview Lab → · Contrast checker → · Palette generator →

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