#BA9827#BA9827

#BA9827 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#BA9827
RGBrgb(186, 152, 39)
HSLhsl(46, 65%, 44%)
HSVhsv(46, 79%, 73%)
CMYKcmyk(0%, 18.3%, 79%, 27.1%)
CIE-LABlab(64.20, 1.60, 59.63)
CIE-LCHlch(64.20, 59.65, 88.46°)
OKLaboklab(69.2% -0.0022 0.1296)
OKLCHoklch(69.2% 0.13 91)
XYZxyz(31.8460, 33.0441, 6.6199)
Luminance0.3304 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9827 #2749BA
analogous
#BA4E27 #BA9827 #93BA27
triadic
#BA9827 #27BA98 #9827BA
tetradic
#BA9827 #27BA4E #2749BA #BA2793
square
#BA9827 #27BA4E #2749BA #BA2793
split-complementary
#BA9827 #2793BA #4E27BA
monochromatic
#554512 #876F1C #BA9827 #D8B646 #E3CA79

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9827#FFFFFF#000000##000000
##BA98271.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)
#AA960E
Deuteranopia (green-blind)
#B2A02E
Tritanopia (blue-blind)
#CA8B83
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba9827;
/* rgb */ color: rgb(186, 152, 39);
/* oklch */ color: oklch(69.2% 0.130 91.0);
Tailwind
colors: {
  custom: {
    50: '#d3b56b',
    500: '#ba9827',
    950: '#000000',
  },
}
SCSS
$custom: #ba9827;
$custom-light: #d3b56b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9827",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 39
  },
  "hsl": {
    "h": 46.122,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.69201,
    "c": 0.12958,
    "h": 91
  },
  "luminance": 0.33042
}

Semantic roles & 50–950 ramp

primary
#BA9827
secondary
#7287CB
accent
#67E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9827

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

Preview Lab → · Contrast checker → · Palette generator →

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