#BA9926#BA9926

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

Color values

HEX#BA9926
RGBrgb(186, 153, 38)
HSLhsl(47, 66%, 44%)
HSVhsv(47, 80%, 73%)
CMYKcmyk(0%, 17.7%, 79.6%, 27.1%)
CIE-LABlab(64.45, 1.02, 60.20)
CIE-LCHlch(64.45, 60.21, 89.03°)
OKLaboklab(69.4% -0.0039 0.1306)
OKLCHoklch(69.4% 0.131 91.7)
XYZxyz(31.9927, 33.3635, 6.5881)
Luminance0.3336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9926 #2647BA
analogous
#BA4F26 #BA9926 #91BA26
triadic
#BA9926 #26BA99 #9926BA
tetradic
#BA9926 #26BA4F #2647BA #BA2691
square
#BA9926 #26BA4F #2647BA #BA2691
split-complementary
#BA9926 #2691BA #4F26BA
monochromatic
#544511 #876F1C #BA9926 #D9B844 #E3CB77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9926#FFFFFF#000000##000000
##BA99261.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)
#AB970A
Deuteranopia (green-blind)
#B3A02D
Tritanopia (blue-blind)
#CA8C83
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba9926;
/* rgb */ color: rgb(186, 153, 38);
/* oklch */ color: oklch(69.4% 0.131 91.7);
Tailwind
colors: {
  custom: {
    50: '#d3b66a',
    500: '#ba9926',
    950: '#000000',
  },
}
SCSS
$custom: #ba9926;
$custom-light: #d3b66a;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9926",
  "rgb": {
    "r": 186,
    "g": 153,
    "b": 38
  },
  "hsl": {
    "h": 46.622,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69402,
    "c": 0.13064,
    "h": 91.7
  },
  "luminance": 0.33362
}

Semantic roles & 50–950 ramp

primary
#BA9926
secondary
#7185CB
accent
#65E93F
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9926

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

Preview Lab → · Contrast checker → · Palette generator →

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