#BA9F37#BA9F37

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

Color values

HEX#BA9F37
RGBrgb(186, 159, 55)
HSLhsl(48, 54%, 47%)
HSVhsv(48, 70%, 73%)
CMYKcmyk(0%, 14.5%, 70.4%, 27.1%)
CIE-LABlab(66.15, -1.46, 55.45)
CIE-LCHlch(66.15, 55.47, 91.51°)
OKLaboklab(70.77% -0.0092 0.1239)
OKLCHoklch(70.77% 0.124 94.2)
XYZxyz(33.3391, 35.5130, 8.7123)
Luminance0.3551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F37 #3752BA
analogous
#BA5E37 #BA9F37 #93BA37
triadic
#BA9F37 #37BA9F #9F37BA
tetradic
#BA9F37 #37BA5E #3752BA #BA3793
square
#BA9F37 #37BA5E #3752BA #BA3793
split-complementary
#BA9F37 #3793BA #5E37BA
monochromatic
#5C4E1B #8B7729 #BA9F37 #D0B85F #DECD8E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9F37#FFFFFF#000000##000000
##BA9F371.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)
#B09C28
Deuteranopia (green-blind)
#B6A43D
Tritanopia (blue-blind)
#C9938A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f37;
/* rgb */ color: rgb(186, 159, 55);
/* oklch */ color: oklch(70.8% 0.124 94.2);
Tailwind
colors: {
  custom: {
    50: '#d2bb74',
    500: '#ba9f37',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f37;
$custom-light: #d2bb74;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f37",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 55
  },
  "hsl": {
    "h": 47.634,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.70772,
    "c": 0.12419,
    "h": 94.2
  },
  "luminance": 0.35511
}

Semantic roles & 50–950 ramp

primary
#BA9F37
secondary
#8593C8
accent
#69DE4A
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9F37

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

Preview Lab → · Contrast checker → · Palette generator →

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