#BA9927#BA9927

#BA9927 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#BA9927
RGBrgb(186, 153, 39)
HSLhsl(47, 65%, 44%)
HSVhsv(47, 79%, 73%)
CMYKcmyk(0%, 17.7%, 79%, 27.1%)
CIE-LABlab(64.46, 1.06, 59.87)
CIE-LCHlch(64.46, 59.88, 88.99°)
OKLaboklab(69.41% -0.0037 0.1301)
OKLCHoklch(69.41% 0.13 91.6)
XYZxyz(32.0090, 33.3701, 6.6742)
Luminance0.3337 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9927 #2748BA
analogous
#BA5027 #BA9927 #92BA27
triadic
#BA9927 #27BA99 #9927BA
tetradic
#BA9927 #27BA50 #2748BA #BA2792
square
#BA9927 #27BA50 #2748BA #BA2792
split-complementary
#BA9927 #2792BA #5027BA
monochromatic
#554612 #876F1C #BA9927 #D8B746 #E3CB79

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9927#FFFFFF#000000##000000
##BA99271.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)
#AB970D
Deuteranopia (green-blind)
#B3A02E
Tritanopia (blue-blind)
#CA8C83
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba9927;
/* rgb */ color: rgb(186, 153, 39);
/* oklch */ color: oklch(69.4% 0.130 91.6);
Tailwind
colors: {
  custom: {
    50: '#d3b66b',
    500: '#ba9927',
    950: '#000000',
  },
}
SCSS
$custom: #ba9927;
$custom-light: #d3b66b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9927",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 39
  },
  "hsl": {
    "h": 46.531,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.69408,
    "c": 0.13013,
    "h": 91.6
  },
  "luminance": 0.33368
}

Semantic roles & 50–950 ramp

primary
#BA9927
secondary
#7286CB
accent
#65E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9927

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

Preview Lab → · Contrast checker → · Palette generator →

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