#BA9E31#BA9E31

#BA9E31 is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.5% C 0.127 H 94.1°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#BA9E31
RGBrgb(186, 158, 49)
HSLhsl(48, 58%, 46%)
HSVhsv(48, 74%, 73%)
CMYKcmyk(0%, 15.1%, 73.7%, 27.1%)
CIE-LABlab(65.84, -1.22, 57.53)
CIE-LCHlch(65.84, 57.55, 91.21°)
OKLaboklab(70.52% -0.0092 0.1271)
OKLCHoklch(70.52% 0.127 94.1)
XYZxyz(33.0327, 35.1164, 7.9434)
Luminance0.3512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E31 #314DBA
analogous
#BA5931 #BA9E31 #91BA31
triadic
#BA9E31 #31BA9E #9E31BA
tetradic
#BA9E31 #31BA59 #314DBA #BA3191
square
#BA9E31 #31BA59 #314DBA #BA3191
split-complementary
#BA9E31 #3191BA #5931BA
monochromatic
#594C17 #8A7524 #BA9E31 #D2B956 #DFCD86

Accessibility & contrast

On white

2.62
#BA9E31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#BA9E31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9E31
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9E31#FFFFFF#000000##000000
##BA9E311.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B1F
Deuteranopia (green-blind)
#B6A437
Tritanopia (blue-blind)
#C99188
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba9e31;
/* rgb */ color: rgb(186, 158, 49);
/* oklch */ color: oklch(70.5% 0.127 94.1);
Tailwind
colors: {
  custom: {
    50: '#d3ba71',
    500: '#ba9e31',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e31;
$custom-light: #d3ba71;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e31",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 49
  },
  "hsl": {
    "h": 47.737,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.70516,
    "c": 0.12747,
    "h": 94.1
  },
  "luminance": 0.35115
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA9E31

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

Preview Lab → · Contrast checker → · Palette generator →

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