#BA9C2D#BA9C2D

#BA9C2D is a light, vivid yellow. Relative luminance 0.344; OKLCH L 70.1% C 0.129 H 93.1°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#BA9C2D
RGBrgb(186, 156, 45)
HSLhsl(47, 61%, 45%)
HSVhsv(47, 76%, 73%)
CMYKcmyk(0%, 16.1%, 75.8%, 27.1%)
CIE-LABlab(65.28, -0.32, 58.51)
CIE-LCHlch(65.28, 58.51, 90.31°)
OKLaboklab(70.07% -0.007 0.1284)
OKLCHoklch(70.07% 0.129 93.1)
XYZxyz(32.6136, 34.4074, 7.4056)
Luminance0.3441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9C2D #2D4BBA
analogous
#BA552D #BA9C2D #91BA2D
triadic
#BA9C2D #2DBA9C #9C2DBA
tetradic
#BA9C2D #2DBA55 #2D4BBA #BA2D91
square
#BA9C2D #2DBA55 #2D4BBA #BA2D91
split-complementary
#BA9C2D #2D91BA #552DBA
monochromatic
#574915 #897321 #BA9C2D #D5B850 #E0CC81

Accessibility & contrast

On white

2.66
#BA9C2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#BA9C2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9C2D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9C2D#FFFFFF#000000##000000
##BA9C2D1.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9919
Deuteranopia (green-blind)
#B5A234
Tritanopia (blue-blind)
#C98F86
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9c2d;
/* rgb */ color: rgb(186, 156, 45);
/* oklch */ color: oklch(70.1% 0.129 93.1);
Tailwind
colors: {
  custom: {
    50: '#d3b86e',
    500: '#ba9c2d',
    950: '#000000',
  },
}
SCSS
$custom: #ba9c2d;
$custom-light: #d3b86e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9c2d",
  "rgb": {
    "r": 186,
    "g": 156,
    "b": 45
  },
  "hsl": {
    "h": 47.234,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.7007,
    "c": 0.12861,
    "h": 93.1
  },
  "luminance": 0.34405
}

Semantic roles & 50–950 ramp

primary
#BA9C2D
secondary
#798AC9
accent
#66E444
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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