#BA9B2C#BA9B2C

#BA9B2C is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.9% C 0.129 H 92.6°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#BA9B2C
RGBrgb(186, 155, 44)
HSLhsl(47, 62%, 45%)
HSVhsv(47, 76%, 73%)
CMYKcmyk(0%, 16.7%, 76.3%, 27.1%)
CIE-LABlab(65.01, 0.18, 58.62)
CIE-LCHlch(65.01, 58.62, 89.83°)
OKLaboklab(69.86% -0.0057 0.1285)
OKLCHoklch(69.86% 0.129 92.6)
XYZxyz(32.4275, 34.0656, 7.2497)
Luminance0.3406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B2C #2C4BBA
analogous
#BA542C #BA9B2C #92BA2C
triadic
#BA9B2C #2CBA9B #9B2CBA
tetradic
#BA9B2C #2CBA54 #2C4BBA #BA2C92
square
#BA9B2C #2CBA54 #2C4BBA #BA2C92
split-complementary
#BA9B2C #2C92BA #542CBA
monochromatic
#574915 #897220 #BA9B2C #D5B84E #E1CC80

Accessibility & contrast

On white

2.69
#BA9B2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#BA9B2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9B2C
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9B2C#FFFFFF#000000##000000
##BA9B2C1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9917
Deuteranopia (green-blind)
#B4A233
Tritanopia (blue-blind)
#C98E86
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b2c;
/* rgb */ color: rgb(186, 155, 44);
/* oklch */ color: oklch(69.9% 0.129 92.6);
Tailwind
colors: {
  custom: {
    50: '#d3b86e',
    500: '#ba9b2c',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b2c;
$custom-light: #d3b86e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b2c",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 44
  },
  "hsl": {
    "h": 46.901,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.69855,
    "c": 0.12858,
    "h": 92.6
  },
  "luminance": 0.34064
}

Semantic roles & 50–950 ramp

primary
#BA9B2C
secondary
#788ACA
accent
#66E543
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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