#BA9D2C#BA9D2C

#BA9D2C is a light, vivid yellow. Relative luminance 0.347; OKLCH L 70.3% C 0.130 H 93.9°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#BA9D2C
RGBrgb(186, 157, 44)
HSLhsl(48, 62%, 45%)
HSVhsv(48, 76%, 73%)
CMYKcmyk(0%, 15.6%, 76.3%, 27.1%)
CIE-LABlab(65.54, -0.90, 59.12)
CIE-LCHlch(65.54, 59.12, 90.87°)
OKLaboklab(70.27% -0.0088 0.1295)
OKLCHoklch(70.27% 0.13 93.9)
XYZxyz(32.7631, 34.7368, 7.3616)
Luminance0.3473 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D2C #2C49BA
analogous
#BA562C #BA9D2C #90BA2C
triadic
#BA9D2C #2CBA9D #9D2CBA
tetradic
#BA9D2C #2CBA56 #2C49BA #BA2C90
square
#BA9D2C #2CBA56 #2C49BA #BA2C90
split-complementary
#BA9D2C #2C90BA #562CBA
monochromatic
#574915 #897320 #BA9D2C #D5BA4E #E1CD80

Accessibility & contrast

On white

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

On black

7.95
#BA9D2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9D2C
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9D2C#FFFFFF#000000##000000
##BA9D2C1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A17
Deuteranopia (green-blind)
#B5A333
Tritanopia (blue-blind)
#C99087
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d2c;
/* rgb */ color: rgb(186, 157, 44);
/* oklch */ color: oklch(70.3% 0.130 93.9);
Tailwind
colors: {
  custom: {
    50: '#d3b96e',
    500: '#ba9d2c',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d2c;
$custom-light: #d3b96e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d2c",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 44
  },
  "hsl": {
    "h": 47.746,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.70273,
    "c": 0.12981,
    "h": 93.9
  },
  "luminance": 0.34735
}

Semantic roles & 50–950 ramp

primary
#BA9D2C
secondary
#7889CA
accent
#64E543
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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