#BA9F33#BA9F33

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

Color values

HEX#BA9F33
RGBrgb(186, 159, 51)
HSLhsl(48, 57%, 46%)
HSVhsv(48, 73%, 73%)
CMYKcmyk(0%, 14.5%, 72.6%, 27.1%)
CIE-LABlab(66.12, -1.66, 57.03)
CIE-LCHlch(66.12, 57.05, 91.67°)
OKLaboklab(70.74% -0.0102 0.1265)
OKLCHoklch(70.74% 0.127 94.6)
XYZxyz(33.2471, 35.4762, 8.2277)
Luminance0.3547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F33 #334EBA
analogous
#BA5C33 #BA9F33 #92BA33
triadic
#BA9F33 #33BA9F #9F33BA
tetradic
#BA9F33 #33BA5C #334EBA #BA3392
square
#BA9F33 #33BA5C #334EBA #BA3392
split-complementary
#BA9F33 #3392BA #5C33BA
monochromatic
#5A4D19 #8A7626 #BA9F33 #D1B959 #DFCD89

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9F33#FFFFFF#000000##000000
##BA9F331.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)
#B09C22
Deuteranopia (green-blind)
#B7A439
Tritanopia (blue-blind)
#C99289
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f33;
/* rgb */ color: rgb(186, 159, 51);
/* oklch */ color: oklch(70.7% 0.127 94.6);
Tailwind
colors: {
  custom: {
    50: '#d3bb72',
    500: '#ba9f33',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f33;
$custom-light: #d3bb72;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f33",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 51
  },
  "hsl": {
    "h": 48,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.70741,
    "c": 0.12686,
    "h": 94.6
  },
  "luminance": 0.35474
}

Semantic roles & 50–950 ramp

primary
#BA9F33
secondary
#808FC9
accent
#66E048
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9F33

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

Preview Lab → · Contrast checker → · Palette generator →

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