#BA9F34#BA9F34

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

Color values

HEX#BA9F34
RGBrgb(186, 159, 52)
HSLhsl(48, 56%, 47%)
HSVhsv(48, 72%, 73%)
CMYKcmyk(0%, 14.5%, 72%, 27.1%)
CIE-LABlab(66.12, -1.61, 56.64)
CIE-LCHlch(66.12, 56.66, 91.63°)
OKLaboklab(70.75% -0.0099 0.1258)
OKLCHoklch(70.75% 0.126 94.5)
XYZxyz(33.2694, 35.4851, 8.3451)
Luminance0.3548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F34 #344FBA
analogous
#BA5C34 #BA9F34 #92BA34
triadic
#BA9F34 #34BA9F #9F34BA
tetradic
#BA9F34 #34BA5C #344FBA #BA3492
square
#BA9F34 #34BA5C #344FBA #BA3492
split-complementary
#BA9F34 #3492BA #5C34BA
monochromatic
#5A4D19 #8A7627 #BA9F34 #D1B95A #DECD8A

Accessibility & contrast

On white

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

On black

8.10
#BA9F34 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9F34
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9F34#FFFFFF#000000##000000
##BA9F341.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C24
Deuteranopia (green-blind)
#B7A43A
Tritanopia (blue-blind)
#C9928A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f34;
/* rgb */ color: rgb(186, 159, 52);
/* oklch */ color: oklch(70.7% 0.126 94.5);
Tailwind
colors: {
  custom: {
    50: '#d3bb72',
    500: '#ba9f34',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f34;
$custom-light: #d3bb72;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f34",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 52
  },
  "hsl": {
    "h": 47.91,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.70749,
    "c": 0.12621,
    "h": 94.5
  },
  "luminance": 0.35483
}

Semantic roles & 50–950 ramp

primary
#BA9F34
secondary
#8190C8
accent
#67E048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9F34

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

Preview Lab → · Contrast checker → · Palette generator →

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