#BA9D37#BA9D37

#BA9D37 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 70.4% C 0.123 H 92.8°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#BA9D37
RGBrgb(186, 157, 55)
HSLhsl(47, 54%, 47%)
HSVhsv(47, 70%, 73%)
CMYKcmyk(0%, 15.6%, 70.4%, 27.1%)
CIE-LABlab(65.62, -0.38, 54.91)
CIE-LCHlch(65.62, 54.91, 90.40°)
OKLaboklab(70.35% -0.0061 0.1227)
OKLCHoklch(70.35% 0.123 92.8)
XYZxyz(32.9980, 34.8308, 8.5986)
Luminance0.3483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D37 #3754BA
analogous
#BA5C37 #BA9D37 #95BA37
triadic
#BA9D37 #37BA9D #9D37BA
tetradic
#BA9D37 #37BA5C #3754BA #BA3795
square
#BA9D37 #37BA5C #3754BA #BA3795
split-complementary
#BA9D37 #3795BA #5C37BA
monochromatic
#5C4D1B #8B7529 #BA9D37 #D0B75F #DECC8E

Accessibility & contrast

On white

2.64
#BA9D37 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#BA9D37 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9D37
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9D37#FFFFFF#000000##000000
##BA9D371.002.647.977.97
#FFFFFF2.641.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A29
Deuteranopia (green-blind)
#B5A33C
Tritanopia (blue-blind)
#C99088
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d37;
/* rgb */ color: rgb(186, 157, 55);
/* oklch */ color: oklch(70.4% 0.123 92.8);
Tailwind
colors: {
  custom: {
    50: '#d2b974',
    500: '#ba9d37',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d37;
$custom-light: #d2b974;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d37",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 55
  },
  "hsl": {
    "h": 46.718,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.70354,
    "c": 0.12287,
    "h": 92.8
  },
  "luminance": 0.34829
}

Semantic roles & 50–950 ramp

primary
#BA9D37
secondary
#8594C8
accent
#6BDE4A
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9D37

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

Preview Lab → · Contrast checker → · Palette generator →

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