#BA9F31#BA9F31

#BA9F31 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.7% C 0.128 H 94.8°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#BA9F31
RGBrgb(186, 159, 49)
HSLhsl(48, 58%, 46%)
HSVhsv(48, 74%, 73%)
CMYKcmyk(0%, 14.5%, 73.7%, 27.1%)
CIE-LABlab(66.10, -1.75, 57.79)
CIE-LCHlch(66.10, 57.82, 91.74°)
OKLaboklab(70.73% -0.0107 0.1277)
OKLCHoklch(70.73% 0.128 94.8)
XYZxyz(33.2040, 35.4590, 8.0005)
Luminance0.3546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F31 #314CBA
analogous
#BA5A31 #BA9F31 #90BA31
triadic
#BA9F31 #31BA9F #9F31BA
tetradic
#BA9F31 #31BA5A #314CBA #BA3190
square
#BA9F31 #31BA5A #314CBA #BA3190
split-complementary
#BA9F31 #3190BA #5A31BA
monochromatic
#594C17 #8A7624 #BA9F31 #D2BA56 #DFCE86

Accessibility & contrast

On white

2.60
#BA9F31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#BA9F31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9F31
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9F31#FFFFFF#000000##000000
##BA9F311.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C1F
Deuteranopia (green-blind)
#B7A437
Tritanopia (blue-blind)
#C99289
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f31;
/* rgb */ color: rgb(186, 159, 49);
/* oklch */ color: oklch(70.7% 0.128 94.8);
Tailwind
colors: {
  custom: {
    50: '#d3bb71',
    500: '#ba9f31',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f31;
$custom-light: #d3bb71;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f31",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 49
  },
  "hsl": {
    "h": 48.175,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.70726,
    "c": 0.12814,
    "h": 94.8
  },
  "luminance": 0.35457
}

Semantic roles & 50–950 ramp

primary
#BA9F31
secondary
#7E8DC9
accent
#65E246
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9F31

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

Preview Lab → · Contrast checker → · Palette generator →

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