#BA9F2C#BA9F2C

#BA9F2C is a light, vivid yellow. Relative luminance 0.354; OKLCH L 70.7% C 0.131 H 95.2°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#BA9F2C
RGBrgb(186, 159, 44)
HSLhsl(49, 62%, 45%)
HSVhsv(49, 76%, 73%)
CMYKcmyk(0%, 14.5%, 76.3%, 27.1%)
CIE-LABlab(66.07, -1.97, 59.61)
CIE-LCHlch(66.07, 59.64, 91.90°)
OKLaboklab(70.69% -0.0118 0.1306)
OKLCHoklch(70.69% 0.131 95.2)
XYZxyz(33.1042, 35.4191, 7.4753)
Luminance0.3542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9F2C #2C47BA
analogous
#BA582C #BA9F2C #8EBA2C
triadic
#BA9F2C #2CBA9F #9F2CBA
tetradic
#BA9F2C #2CBA58 #2C47BA #BA2C8E
square
#BA9F2C #2CBA58 #2C47BA #BA2C8E
split-complementary
#BA9F2C #2C8EBA #582CBA
monochromatic
#574A15 #897520 #BA9F2C #D5BB4E #E1CE80

Accessibility & contrast

On white

2.60
#BA9F2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#BA9F2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9F2C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9F2C#FFFFFF#000000##000000
##BA9F2C1.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C16
Deuteranopia (green-blind)
#B7A433
Tritanopia (blue-blind)
#C99289
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba9f2c;
/* rgb */ color: rgb(186, 159, 44);
/* oklch */ color: oklch(70.7% 0.131 95.2);
Tailwind
colors: {
  custom: {
    50: '#d3bb6e',
    500: '#ba9f2c',
    950: '#000000',
  },
}
SCSS
$custom: #ba9f2c;
$custom-light: #d3bb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9f2c",
  "rgb": {
    "r": 186,
    "g": 159,
    "b": 44
  },
  "hsl": {
    "h": 48.592,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.70692,
    "c": 0.13111,
    "h": 95.2
  },
  "luminance": 0.35417
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA9F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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