#BA9E34#BA9E34

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

Color values

HEX#BA9E34
RGBrgb(186, 158, 52)
HSLhsl(47, 56%, 47%)
HSVhsv(47, 72%, 73%)
CMYKcmyk(0%, 15.1%, 72%, 27.1%)
CIE-LABlab(65.86, -1.07, 56.38)
CIE-LCHlch(65.86, 56.39, 91.09°)
OKLaboklab(70.54% -0.0084 0.1253)
OKLCHoklch(70.54% 0.126 93.8)
XYZxyz(33.0981, 35.1426, 8.2880)
Luminance0.3514 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E34 #3450BA
analogous
#BA5B34 #BA9E34 #93BA34
triadic
#BA9E34 #34BA9E #9E34BA
tetradic
#BA9E34 #34BA5B #3450BA #BA3493
square
#BA9E34 #34BA5B #3450BA #BA3493
split-complementary
#BA9E34 #3493BA #5B34BA
monochromatic
#5A4D19 #8A7527 #BA9E34 #D1B85A #DECD8A

Accessibility & contrast

On white

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

On black

8.03
#BA9E34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9E34
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9E34#FFFFFF#000000##000000
##BA9E341.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B24
Deuteranopia (green-blind)
#B6A43A
Tritanopia (blue-blind)
#C99189
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba9e34;
/* rgb */ color: rgb(186, 158, 52);
/* oklch */ color: oklch(70.5% 0.126 93.8);
Tailwind
colors: {
  custom: {
    50: '#d3ba72',
    500: '#ba9e34',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e34;
$custom-light: #d3ba72;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e34",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 52
  },
  "hsl": {
    "h": 47.463,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.70539,
    "c": 0.12554,
    "h": 93.8
  },
  "luminance": 0.35141
}

Semantic roles & 50–950 ramp

primary
#BA9E34
secondary
#8190C8
accent
#68E048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9E34

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

Preview Lab → · Contrast checker → · Palette generator →

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