#BA9928#BA9928

#BA9928 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 69.4% C 0.130 H 91.6°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#BA9928
RGBrgb(186, 153, 40)
HSLhsl(46, 65%, 44%)
HSVhsv(46, 78%, 73%)
CMYKcmyk(0%, 17.7%, 78.5%, 27.1%)
CIE-LABlab(64.46, 1.10, 59.53)
CIE-LCHlch(64.46, 59.54, 88.94°)
OKLaboklab(69.41% -0.0035 0.1296)
OKLCHoklch(69.41% 0.13 91.6)
XYZxyz(32.0258, 33.3768, 6.7626)
Luminance0.3337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9928 #2849BA
analogous
#BA5028 #BA9928 #92BA28
triadic
#BA9928 #28BA99 #9928BA
tetradic
#BA9928 #28BA50 #2849BA #BA2892
square
#BA9928 #28BA50 #2849BA #BA2892
split-complementary
#BA9928 #2892BA #5028BA
monochromatic
#554612 #88701D #BA9928 #D8B748 #E2CB7A

Accessibility & contrast

On white

2.74
#BA9928 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#BA9928 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9928
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9928#FFFFFF#000000##000000
##BA99281.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9710
Deuteranopia (green-blind)
#B3A02F
Tritanopia (blue-blind)
#CA8C84
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba9928;
/* rgb */ color: rgb(186, 153, 40);
/* oklch */ color: oklch(69.4% 0.130 91.6);
Tailwind
colors: {
  custom: {
    50: '#d3b66b',
    500: '#ba9928',
    950: '#000000',
  },
}
SCSS
$custom: #ba9928;
$custom-light: #d3b66b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9928",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 40
  },
  "hsl": {
    "h": 46.438,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.69414,
    "c": 0.12961,
    "h": 91.6
  },
  "luminance": 0.33375
}

Semantic roles & 50–950 ramp

primary
#BA9928
secondary
#7387CA
accent
#66E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9928

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

Preview Lab → · Contrast checker → · Palette generator →

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