#BA9F3A#BA9F3A

#BA9F3A is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.8% C 0.122 H 93.9°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#BA9F3A
RGBrgb(186, 159, 58)
HSLhsl(47, 52%, 48%)
HSVhsv(47, 69%, 73%)
CMYKcmyk(0%, 14.5%, 68.8%, 27.1%)
CIE-LABlab(66.17, -1.29, 54.22)
CIE-LCHlch(66.17, 54.24, 91.37°)
OKLaboklab(70.8% -0.0083 0.1218)
OKLCHoklch(70.8% 0.122 93.9)
XYZxyz(33.4132, 35.5427, 9.1026)
Luminance0.3554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F3A #3A55BA
analogous
#BA5F3A #BA9F3A #95BA3A
triadic
#BA9F3A #3ABA9F #9F3ABA
tetradic
#BA9F3A #3ABA5F #3A55BA #BA3A95
square
#BA9F3A #3ABA5F #3A55BA #BA3A95
split-complementary
#BA9F3A #3A95BA #5F3ABA
monochromatic
#5D4F1D #8B772B #BA9F3A #CEB863 #DDCD92

Accessibility & contrast

On white

2.59
#BA9F3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#BA9F3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9F3A
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9F3A#FFFFFF#000000##000000
##BA9F3A1.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C2D
Deuteranopia (green-blind)
#B6A43F
Tritanopia (blue-blind)
#C9938A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f3a;
/* rgb */ color: rgb(186, 159, 58);
/* oklch */ color: oklch(70.8% 0.122 93.9);
Tailwind
colors: {
  custom: {
    50: '#d2bb76',
    500: '#ba9f3a',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f3a;
$custom-light: #d2bb76;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f3a",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 58
  },
  "hsl": {
    "h": 47.344,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.70798,
    "c": 0.12207,
    "h": 93.9
  },
  "luminance": 0.35541
}

Semantic roles & 50–950 ramp

primary
#BA9F3A
secondary
#8895C8
accent
#6ADC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151109
muted
#83807B

Preview Lab

Preview with #BA9F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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