#BA9F32#BA9F32

#BA9F32 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.7% C 0.128 H 94.7°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#BA9F32
RGBrgb(186, 159, 50)
HSLhsl(48, 58%, 46%)
HSVhsv(48, 73%, 73%)
CMYKcmyk(0%, 14.5%, 73.1%, 27.1%)
CIE-LABlab(66.11, -1.71, 57.41)
CIE-LCHlch(66.11, 57.44, 91.70°)
OKLaboklab(70.73% -0.0105 0.1271)
OKLCHoklch(70.73% 0.128 94.7)
XYZxyz(33.2253, 35.4675, 8.1129)
Luminance0.3547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F32 #324DBA
analogous
#BA5B32 #BA9F32 #91BA32
triadic
#BA9F32 #32BA9F #9F32BA
tetradic
#BA9F32 #32BA5B #324DBA #BA3291
square
#BA9F32 #32BA5B #324DBA #BA3291
split-complementary
#BA9F32 #3291BA #5B32BA
monochromatic
#5A4D18 #8A7625 #BA9F32 #D2BA57 #DFCE88

Accessibility & contrast

On white

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

On black

8.09
#BA9F32 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9F32
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9F32#FFFFFF#000000##000000
##BA9F321.002.598.098.09
#FFFFFF2.591.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C21
Deuteranopia (green-blind)
#B7A438
Tritanopia (blue-blind)
#C99289
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f32;
/* rgb */ color: rgb(186, 159, 50);
/* oklch */ color: oklch(70.7% 0.128 94.7);
Tailwind
colors: {
  custom: {
    50: '#d3bb71',
    500: '#ba9f32',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f32;
$custom-light: #d3bb71;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f32",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 50
  },
  "hsl": {
    "h": 48.088,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.70733,
    "c": 0.12751,
    "h": 94.7
  },
  "luminance": 0.35466
}

Semantic roles & 50–950 ramp

primary
#BA9F32
secondary
#7F8EC9
accent
#65E147
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9F32

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

Preview Lab → · Contrast checker → · Palette generator →

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