#BA9C26#BA9C26

#BA9C26 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 70.0% C 0.132 H 93.7°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#BA9C26
RGBrgb(186, 156, 38)
HSLhsl(48, 66%, 44%)
HSVhsv(48, 80%, 73%)
CMYKcmyk(0%, 16.1%, 79.6%, 27.1%)
CIE-LABlab(65.25, -0.60, 60.91)
CIE-LCHlch(65.25, 60.91, 90.56°)
OKLaboklab(70.03% -0.0085 0.1321)
OKLCHoklch(70.03% 0.132 93.7)
XYZxyz(32.4899, 34.3579, 6.7538)
Luminance0.3436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9C26 #2644BA
analogous
#BA5226 #BA9C26 #8EBA26
triadic
#BA9C26 #26BA9C #9C26BA
tetradic
#BA9C26 #26BA52 #2644BA #BA268E
square
#BA9C26 #26BA52 #2644BA #BA268E
split-complementary
#BA9C26 #268EBA #5226BA
monochromatic
#544711 #87711C #BA9C26 #D9BB44 #E3CD77

Accessibility & contrast

On white

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

On black

7.87
#BA9C26 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9C26
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9C26#FFFFFF#000000##000000
##BA9C261.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9908
Deuteranopia (green-blind)
#B5A22E
Tritanopia (blue-blind)
#CA8F86
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9c26;
/* rgb */ color: rgb(186, 156, 38);
/* oklch */ color: oklch(70.0% 0.132 93.7);
Tailwind
colors: {
  custom: {
    50: '#d3b86b',
    500: '#ba9c26',
    950: '#000000',
  },
}
SCSS
$custom: #ba9c26;
$custom-light: #d3b86b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9c26",
  "rgb": {
    "r": 186,
    "g": 156,
    "b": 38
  },
  "hsl": {
    "h": 47.838,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70027,
    "c": 0.13239,
    "h": 93.7
  },
  "luminance": 0.34356
}

Semantic roles & 50–950 ramp

primary
#BA9C26
secondary
#7183CB
accent
#61E93F
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9C26

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

Preview Lab → · Contrast checker → · Palette generator →

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