#BA9E32#BA9E32

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

Color values

HEX#BA9E32
RGBrgb(186, 158, 50)
HSLhsl(48, 58%, 46%)
HSVhsv(48, 73%, 73%)
CMYKcmyk(0%, 15.1%, 73.1%, 27.1%)
CIE-LABlab(65.85, -1.17, 57.15)
CIE-LCHlch(65.85, 57.16, 91.17°)
OKLaboklab(70.52% -0.0089 0.1265)
OKLCHoklch(70.52% 0.127 94)
XYZxyz(33.0540, 35.1250, 8.0558)
Luminance0.3512 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E32 #324EBA
analogous
#BA5A32 #BA9E32 #92BA32
triadic
#BA9E32 #32BA9E #9E32BA
tetradic
#BA9E32 #32BA5A #324EBA #BA3292
square
#BA9E32 #32BA5A #324EBA #BA3292
split-complementary
#BA9E32 #3292BA #5A32BA
monochromatic
#5A4C18 #8A7525 #BA9E32 #D2B957 #DFCD88

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9E32#FFFFFF#000000##000000
##BA9E321.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)
#AF9B21
Deuteranopia (green-blind)
#B6A438
Tritanopia (blue-blind)
#C99189
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba9e32;
/* rgb */ color: rgb(186, 158, 50);
/* oklch */ color: oklch(70.5% 0.127 94.0);
Tailwind
colors: {
  custom: {
    50: '#d3ba71',
    500: '#ba9e32',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e32;
$custom-light: #d3ba71;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e32",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 50
  },
  "hsl": {
    "h": 47.647,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.70524,
    "c": 0.12684,
    "h": 94
  },
  "luminance": 0.35123
}

Semantic roles & 50–950 ramp

primary
#BA9E32
secondary
#7F8EC9
accent
#67E147
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9E32

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

Preview Lab → · Contrast checker → · Palette generator →

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