#BA9E29#BA9E29

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

Color values

HEX#BA9E29
RGBrgb(186, 158, 41)
HSLhsl(48, 64%, 45%)
HSVhsv(48, 78%, 73%)
CMYKcmyk(0%, 15.1%, 78%, 27.1%)
CIE-LABlab(65.79, -1.56, 60.40)
CIE-LCHlch(65.79, 60.42, 91.48°)
OKLaboklab(70.46% -0.011 0.1316)
OKLCHoklch(70.46% 0.132 94.8)
XYZxyz(32.8786, 35.0548, 7.1319)
Luminance0.3505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E29 #2945BA
analogous
#BA5629 #BA9E29 #8EBA29
triadic
#BA9E29 #29BA9E #9E29BA
tetradic
#BA9E29 #29BA56 #2945BA #BA298E
square
#BA9E29 #29BA56 #2945BA #BA298E
split-complementary
#BA9E29 #298EBA #5629BA
monochromatic
#564913 #88731E #BA9E29 #D7BC49 #E2CE7B

Accessibility & contrast

On white

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

On black

8.01
#BA9E29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9E29
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9E29#FFFFFF#000000##000000
##BA9E291.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba9e29;
/* rgb */ color: rgb(186, 158, 41);
/* oklch */ color: oklch(70.5% 0.132 94.8);
Tailwind
colors: {
  custom: {
    50: '#d3ba6c',
    500: '#ba9e29',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e29;
$custom-light: #d3ba6c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e29",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 41
  },
  "hsl": {
    "h": 48.414,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.70463,
    "c": 0.1321,
    "h": 94.8
  },
  "luminance": 0.35053
}

Semantic roles & 50–950 ramp

primary
#BA9E29
secondary
#7585CA
accent
#61E741
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9E29

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

Preview Lab → · Contrast checker → · Palette generator →

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