#BA9E33#BA9E33

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

Color values

HEX#BA9E33
RGBrgb(186, 158, 51)
HSLhsl(48, 57%, 46%)
HSVhsv(48, 73%, 73%)
CMYKcmyk(0%, 15.1%, 72.6%, 27.1%)
CIE-LABlab(65.85, -1.12, 56.77)
CIE-LCHlch(65.85, 56.78, 91.13°)
OKLaboklab(70.53% -0.0087 0.1259)
OKLCHoklch(70.53% 0.126 93.9)
XYZxyz(33.0758, 35.1337, 8.1706)
Luminance0.3513 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E33 #334FBA
analogous
#BA5B33 #BA9E33 #93BA33
triadic
#BA9E33 #33BA9E #9E33BA
tetradic
#BA9E33 #33BA5B #334FBA #BA3393
square
#BA9E33 #33BA5B #334FBA #BA3393
split-complementary
#BA9E33 #3393BA #5B33BA
monochromatic
#5A4C19 #8A7526 #BA9E33 #D1B859 #DFCD89

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9E33#FFFFFF#000000##000000
##BA9E331.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)
#AF9B23
Deuteranopia (green-blind)
#B6A439
Tritanopia (blue-blind)
#C99189
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba9e33;
/* rgb */ color: rgb(186, 158, 51);
/* oklch */ color: oklch(70.5% 0.126 93.9);
Tailwind
colors: {
  custom: {
    50: '#d3ba72',
    500: '#ba9e33',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e33;
$custom-light: #d3ba72;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e33",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 51
  },
  "hsl": {
    "h": 47.556,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.70531,
    "c": 0.1262,
    "h": 93.9
  },
  "luminance": 0.35132
}

Semantic roles & 50–950 ramp

primary
#BA9E33
secondary
#808FC9
accent
#67E048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9E33

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

Preview Lab → · Contrast checker → · Palette generator →

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