#BA9826#BA9826

#BA9826 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 69.2% C 0.130 H 91.0°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#BA9826
RGBrgb(186, 152, 38)
HSLhsl(46, 66%, 44%)
HSVhsv(46, 80%, 73%)
CMYKcmyk(0%, 18.3%, 79.6%, 27.1%)
CIE-LABlab(64.19, 1.57, 59.96)
CIE-LCHlch(64.19, 59.98, 88.50°)
OKLaboklab(69.19% -0.0024 0.1301)
OKLCHoklch(69.19% 0.13 91)
XYZxyz(31.8297, 33.0375, 6.5337)
Luminance0.3304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9826 #2648BA
analogous
#BA4E26 #BA9826 #92BA26
triadic
#BA9826 #26BA98 #9826BA
tetradic
#BA9826 #26BA4E #2648BA #BA2692
square
#BA9826 #26BA4E #2648BA #BA2692
split-complementary
#BA9826 #2692BA #4E26BA
monochromatic
#544511 #876E1C #BA9826 #D9B744 #E3CA77

Accessibility & contrast

On white

2.76
#BA9826 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#BA9826 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9826
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9826#FFFFFF#000000##000000
##BA98261.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA960B
Deuteranopia (green-blind)
#B2A02D
Tritanopia (blue-blind)
#CA8B83
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba9826;
/* rgb */ color: rgb(186, 152, 38);
/* oklch */ color: oklch(69.2% 0.130 91.0);
Tailwind
colors: {
  custom: {
    50: '#d3b56a',
    500: '#ba9826',
    950: '#000000',
  },
}
SCSS
$custom: #ba9826;
$custom-light: #d3b56a;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9826",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 38
  },
  "hsl": {
    "h": 46.216,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69195,
    "c": 0.13009,
    "h": 91
  },
  "luminance": 0.33036
}

Semantic roles & 50–950 ramp

primary
#BA9826
secondary
#7186CB
accent
#66E93F
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9826

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

Preview Lab → · Contrast checker → · Palette generator →

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