#BA9828#BA9828

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

Color values

HEX#BA9828
RGBrgb(186, 152, 40)
HSLhsl(46, 65%, 44%)
HSVhsv(46, 78%, 73%)
CMYKcmyk(0%, 18.3%, 78.5%, 27.1%)
CIE-LABlab(64.20, 1.64, 59.29)
CIE-LCHlch(64.20, 59.31, 88.42°)
OKLaboklab(69.21% -0.002 0.1291)
OKLCHoklch(69.21% 0.129 90.9)
XYZxyz(31.8628, 33.0508, 6.7083)
Luminance0.3305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9828 #284ABA
analogous
#BA4F28 #BA9828 #93BA28
triadic
#BA9828 #28BA98 #9828BA
tetradic
#BA9828 #28BA4F #284ABA #BA2893
square
#BA9828 #28BA4F #284ABA #BA2893
split-complementary
#BA9828 #2893BA #4F28BA
monochromatic
#554612 #886F1D #BA9828 #D8B648 #E2CA7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9828#FFFFFF#000000##000000
##BA98281.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)
#AA9610
Deuteranopia (green-blind)
#B2A02F
Tritanopia (blue-blind)
#CA8B83
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba9828;
/* rgb */ color: rgb(186, 152, 40);
/* oklch */ color: oklch(69.2% 0.129 90.9);
Tailwind
colors: {
  custom: {
    50: '#d3b56b',
    500: '#ba9828',
    950: '#000000',
  },
}
SCSS
$custom: #ba9828;
$custom-light: #d3b56b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9828",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 46.027,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.69207,
    "c": 0.12907,
    "h": 90.9
  },
  "luminance": 0.33049
}

Semantic roles & 50–950 ramp

primary
#BA9828
secondary
#7388CA
accent
#67E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9828

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

Preview Lab → · Contrast checker → · Palette generator →

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