#BA9D3D#BA9D3D

#BA9D3D is a light, moderate yellow. Relative luminance 0.349; OKLCH L 70.4% C 0.119 H 92.1°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#BA9D3D
RGBrgb(186, 157, 61)
HSLhsl(46, 51%, 48%)
HSVhsv(46, 67%, 73%)
CMYKcmyk(0%, 15.6%, 67.2%, 27.1%)
CIE-LABlab(65.66, -0.05, 52.40)
CIE-LCHlch(65.66, 52.40, 90.05°)
OKLaboklab(70.41% -0.0044 0.1184)
OKLCHoklch(70.41% 0.119 92.1)
XYZxyz(33.1506, 34.8918, 9.4027)
Luminance0.3489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D3D #3D5ABA
analogous
#BA5E3D #BA9D3D #98BA3D
triadic
#BA9D3D #3DBA9D #9D3DBA
tetradic
#BA9D3D #3DBA5E #3D5ABA #BA3D98
square
#BA9D3D #3DBA5E #3D5ABA #BA3D98
split-complementary
#BA9D3D #3D98BA #5E3DBA
monochromatic
#5E4F1F #8C762E #BA9D3D #CDB567 #DCCC95

Accessibility & contrast

On white

2.63
#BA9D3D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#BA9D3D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9D3D
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9D3D#FFFFFF#000000##000000
##BA9D3D1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9B31
Deuteranopia (green-blind)
#B5A342
Tritanopia (blue-blind)
#C99189
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d3d;
/* rgb */ color: rgb(186, 157, 61);
/* oklch */ color: oklch(70.4% 0.119 92.1);
Tailwind
colors: {
  custom: {
    50: '#d2b977',
    500: '#ba9d3d',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d3d;
$custom-light: #d2b977;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d3d",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 61
  },
  "hsl": {
    "h": 46.08,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.70407,
    "c": 0.11852,
    "h": 92.1
  },
  "luminance": 0.3489
}

Semantic roles & 50–950 ramp

primary
#BA9D3D
secondary
#8B99C8
accent
#6EDA4E
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151109
muted
#83807B

Preview Lab

Preview with #BA9D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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