#BA9526#BA9526

#BA9526 is a light, vivid yellow. Relative luminance 0.321; OKLCH L 68.6% C 0.129 H 89.0°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#BA9526
RGBrgb(186, 149, 38)
HSLhsl(45, 66%, 44%)
HSVhsv(45, 80%, 73%)
CMYKcmyk(0%, 19.9%, 79.6%, 27.1%)
CIE-LABlab(63.41, 3.19, 59.25)
CIE-LCHlch(63.41, 59.34, 86.91°)
OKLaboklab(68.58% 0.0023 0.1285)
OKLCHoklch(68.58% 0.129 89)
XYZxyz(31.3489, 32.0760, 6.3735)
Luminance0.3207 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9526 #264BBA
analogous
#BA4B26 #BA9526 #95BA26
triadic
#BA9526 #26BA95 #9526BA
tetradic
#BA9526 #26BA4B #264BBA #BA2695
square
#BA9526 #26BA4B #264BBA #BA2695
split-complementary
#BA9526 #2695BA #4B26BA
monochromatic
#544411 #876C1C #BA9526 #D9B444 #E3C877

Accessibility & contrast

On white

2.83
#BA9526 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#BA9526 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9526
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9526#FFFFFF#000000##000000
##BA95261.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7940D
Deuteranopia (green-blind)
#B09E2D
Tritanopia (blue-blind)
#CA8780
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba9526;
/* rgb */ color: rgb(186, 149, 38);
/* oklch */ color: oklch(68.6% 0.129 89.0);
Tailwind
colors: {
  custom: {
    50: '#d3b36a',
    500: '#ba9526',
    950: '#000000',
  },
}
SCSS
$custom: #ba9526;
$custom-light: #d3b36a;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9526",
  "rgb": {
    "r": 186,
    "g": 149,
    "b": 38
  },
  "hsl": {
    "h": 45,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.68575,
    "c": 0.12856,
    "h": 89
  },
  "luminance": 0.32074
}

Semantic roles & 50–950 ramp

primary
#BA9526
secondary
#7187CB
accent
#69E93F
background
#FDFBF6
surface
#FBF6EB
border
#D4D0C6
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9526

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

Preview Lab → · Contrast checker → · Palette generator →

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