#BA9726#BA9726

#BA9726 is a light, vivid yellow. Relative luminance 0.327; OKLCH L 69.0% C 0.130 H 90.4°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#BA9726
RGBrgb(186, 151, 38)
HSLhsl(46, 66%, 44%)
HSVhsv(46, 80%, 73%)
CMYKcmyk(0%, 18.8%, 79.6%, 27.1%)
CIE-LABlab(63.93, 2.11, 59.72)
CIE-LCHlch(63.93, 59.76, 87.98°)
OKLaboklab(68.99% -0.0008 0.1296)
OKLCHoklch(68.99% 0.13 90.4)
XYZxyz(31.6681, 32.7143, 6.4799)
Luminance0.3271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9726 #2649BA
analogous
#BA4D26 #BA9726 #93BA26
triadic
#BA9726 #26BA97 #9726BA
tetradic
#BA9726 #26BA4D #2649BA #BA2693
square
#BA9726 #26BA4D #2649BA #BA2693
split-complementary
#BA9726 #2693BA #4D26BA
monochromatic
#544411 #876E1C #BA9726 #D9B644 #E3CA77

Accessibility & contrast

On white

2.78
#BA9726 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#BA9726 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9726
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9726#FFFFFF#000000##000000
##BA97261.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A9950C
Deuteranopia (green-blind)
#B19F2D
Tritanopia (blue-blind)
#CA8A82
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba9726;
/* rgb */ color: rgb(186, 151, 38);
/* oklch */ color: oklch(69.0% 0.130 90.4);
Tailwind
colors: {
  custom: {
    50: '#d3b56a',
    500: '#ba9726',
    950: '#000000',
  },
}
SCSS
$custom: #ba9726;
$custom-light: #d3b56a;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9726",
  "rgb": {
    "r": 186,
    "g": 151,
    "b": 38
  },
  "hsl": {
    "h": 45.811,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.68988,
    "c": 0.12956,
    "h": 90.4
  },
  "luminance": 0.32712
}

Semantic roles & 50–950 ramp

primary
#BA9726
secondary
#7186CB
accent
#67E93F
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9726

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

Preview Lab → · Contrast checker → · Palette generator →

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