#BA9B26#BA9B26

#BA9B26 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.8% C 0.132 H 93.0°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#BA9B26
RGBrgb(186, 155, 38)
HSLhsl(47, 66%, 44%)
HSVhsv(47, 80%, 73%)
CMYKcmyk(0%, 16.7%, 79.6%, 27.1%)
CIE-LABlab(64.98, -0.06, 60.67)
CIE-LCHlch(64.98, 60.67, 90.05°)
OKLaboklab(69.82% -0.007 0.1316)
OKLCHoklch(69.82% 0.132 93)
XYZxyz(32.3228, 34.0237, 6.6981)
Luminance0.3402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B26 #2645BA
analogous
#BA5126 #BA9B26 #8FBA26
triadic
#BA9B26 #26BA9B #9B26BA
tetradic
#BA9B26 #26BA51 #2645BA #BA268F
square
#BA9B26 #26BA51 #2645BA #BA268F
split-complementary
#BA9B26 #268FBA #5126BA
monochromatic
#544611 #87711C #BA9B26 #D9BA44 #E3CD77

Accessibility & contrast

On white

2.69
#BA9B26 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#BA9B26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9B26
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9B26#FFFFFF#000000##000000
##BA9B261.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9809
Deuteranopia (green-blind)
#B4A22E
Tritanopia (blue-blind)
#CA8E85
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b26;
/* rgb */ color: rgb(186, 155, 38);
/* oklch */ color: oklch(69.8% 0.132 93.0);
Tailwind
colors: {
  custom: {
    50: '#d3b86b',
    500: '#ba9b26',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b26;
$custom-light: #d3b86b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b26",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 38
  },
  "hsl": {
    "h": 47.432,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69818,
    "c": 0.13179,
    "h": 93
  },
  "luminance": 0.34022
}

Semantic roles & 50–950 ramp

primary
#BA9B26
secondary
#7184CB
accent
#62E93F
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9B26

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

Preview Lab → · Contrast checker → · Palette generator →

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