#BA9C2A#BA9C2A

#BA9C2A is a light, vivid yellow. Relative luminance 0.344; OKLCH L 70.1% C 0.130 H 93.4°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#BA9C2A
RGBrgb(186, 156, 42)
HSLhsl(48, 63%, 45%)
HSVhsv(48, 77%, 73%)
CMYKcmyk(0%, 16.1%, 77.4%, 27.1%)
CIE-LABlab(65.27, -0.44, 59.57)
CIE-LCHlch(65.27, 59.57, 90.43°)
OKLaboklab(70.05% -0.0077 0.1301)
OKLCHoklch(70.05% 0.13 93.4)
XYZxyz(32.5579, 34.3851, 7.1122)
Luminance0.3438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9C2A #2A48BA
analogous
#BA542A #BA9C2A #90BA2A
triadic
#BA9C2A #2ABA9C #9C2ABA
tetradic
#BA9C2A #2ABA54 #2A48BA #BA2A90
square
#BA9C2A #2ABA54 #2A48BA #BA2A90
split-complementary
#BA9C2A #2A90BA #542ABA
monochromatic
#564813 #88721F #BA9C2A #D6B94B #E2CD7D

Accessibility & contrast

On white

2.67
#BA9C2A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#BA9C2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9C2A
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9C2A#FFFFFF#000000##000000
##BA9C2A1.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9913
Deuteranopia (green-blind)
#B5A231
Tritanopia (blue-blind)
#C98F86
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9c2a;
/* rgb */ color: rgb(186, 156, 42);
/* oklch */ color: oklch(70.1% 0.130 93.4);
Tailwind
colors: {
  custom: {
    50: '#d3b86d',
    500: '#ba9c2a',
    950: '#000000',
  },
}
SCSS
$custom: #ba9c2a;
$custom-light: #d3b86d;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9c2a",
  "rgb": {
    "r": 186,
    "g": 156,
    "b": 42
  },
  "hsl": {
    "h": 47.5,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.70051,
    "c": 0.1303,
    "h": 93.4
  },
  "luminance": 0.34383
}

Semantic roles & 50–950 ramp

primary
#BA9C2A
secondary
#7687CA
accent
#64E642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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