#BA9B29#BA9B29

#BA9B29 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.8% C 0.130 H 92.8°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#BA9B29
RGBrgb(186, 155, 41)
HSLhsl(47, 64%, 45%)
HSVhsv(47, 78%, 73%)
CMYKcmyk(0%, 16.7%, 78%, 27.1%)
CIE-LABlab(65.00, 0.06, 59.67)
CIE-LCHlch(65.00, 59.67, 89.95°)
OKLaboklab(69.84% -0.0064 0.1301)
OKLCHoklch(69.84% 0.13 92.8)
XYZxyz(32.3731, 34.0438, 6.9634)
Luminance0.3404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B29 #2948BA
analogous
#BA5229 #BA9B29 #91BA29
triadic
#BA9B29 #29BA9B #9B29BA
tetradic
#BA9B29 #29BA52 #2948BA #BA2991
square
#BA9B29 #29BA52 #2948BA #BA2991
split-complementary
#BA9B29 #2991BA #5229BA
monochromatic
#564713 #88711E #BA9B29 #D7B949 #E2CC7B

Accessibility & contrast

On white

2.69
#BA9B29 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#BA9B29 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9B29
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9B29#FFFFFF#000000##000000
##BA9B291.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9811
Deuteranopia (green-blind)
#B4A230
Tritanopia (blue-blind)
#CA8E85
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b29;
/* rgb */ color: rgb(186, 155, 41);
/* oklch */ color: oklch(69.8% 0.130 92.8);
Tailwind
colors: {
  custom: {
    50: '#d3b86c',
    500: '#ba9b29',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b29;
$custom-light: #d3b86c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b29",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 41
  },
  "hsl": {
    "h": 47.172,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.69836,
    "c": 0.13024,
    "h": 92.8
  },
  "luminance": 0.34042
}

Semantic roles & 50–950 ramp

primary
#BA9B29
secondary
#7587CA
accent
#64E741
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9B29

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

Preview Lab → · Contrast checker → · Palette generator →

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