#BA9E2C#BA9E2C

#BA9E2C is a light, vivid yellow. Relative luminance 0.351; OKLCH L 70.5% C 0.130 H 94.5°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#BA9E2C
RGBrgb(186, 158, 44)
HSLhsl(48, 62%, 45%)
HSVhsv(48, 76%, 73%)
CMYKcmyk(0%, 15.1%, 76.3%, 27.1%)
CIE-LABlab(65.81, -1.44, 59.36)
CIE-LCHlch(65.81, 59.38, 91.39°)
OKLaboklab(70.48% -0.0103 0.13)
OKLCHoklch(70.48% 0.13 94.5)
XYZxyz(32.9330, 35.0766, 7.4182)
Luminance0.3508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E2C #2C48BA
analogous
#BA572C #BA9E2C #8FBA2C
triadic
#BA9E2C #2CBA9E #9E2CBA
tetradic
#BA9E2C #2CBA57 #2C48BA #BA2C8F
square
#BA9E2C #2CBA57 #2C48BA #BA2C8F
split-complementary
#BA9E2C #2C8FBA #572CBA
monochromatic
#574A15 #897420 #BA9E2C #D5BB4E #E1CE80

Accessibility & contrast

On white

2.62
#BA9E2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#BA9E2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9E2C
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9E2C#FFFFFF#000000##000000
##BA9E2C1.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B16
Deuteranopia (green-blind)
#B6A333
Tritanopia (blue-blind)
#C99188
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba9e2c;
/* rgb */ color: rgb(186, 158, 44);
/* oklch */ color: oklch(70.5% 0.130 94.5);
Tailwind
colors: {
  custom: {
    50: '#d3ba6e',
    500: '#ba9e2c',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e2c;
$custom-light: #d3ba6e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e2c",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 44
  },
  "hsl": {
    "h": 48.169,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.70482,
    "c": 0.13045,
    "h": 94.5
  },
  "luminance": 0.35075
}

Semantic roles & 50–950 ramp

primary
#BA9E2C
secondary
#7888CA
accent
#63E543
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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