#BA9E2F#BA9E2F

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

Color values

HEX#BA9E2F
RGBrgb(186, 158, 47)
HSLhsl(48, 60%, 46%)
HSVhsv(48, 75%, 73%)
CMYKcmyk(0%, 15.1%, 74.7%, 27.1%)
CIE-LABlab(65.83, -1.31, 58.28)
CIE-LCHlch(65.83, 58.30, 91.29°)
OKLaboklab(70.5% -0.0096 0.1283)
OKLCHoklch(70.5% 0.129 94.3)
XYZxyz(32.9914, 35.0999, 7.7260)
Luminance0.3510 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E2F #2F4BBA
analogous
#BA592F #BA9E2F #90BA2F
triadic
#BA9E2F #2FBA9E #9E2FBA
tetradic
#BA9E2F #2FBA59 #2F4BBA #BA2F90
square
#BA9E2F #2FBA59 #2F4BBA #BA2F90
split-complementary
#BA9E2F #2F90BA #592FBA
monochromatic
#584B16 #897423 #BA9E2F #D3BA53 #E0CD84

Accessibility & contrast

On white

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

On black

8.02
#BA9E2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9E2F
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9E2F#FFFFFF#000000##000000
##BA9E2F1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba9e2f;
/* rgb */ color: rgb(186, 158, 47);
/* oklch */ color: oklch(70.5% 0.129 94.3);
Tailwind
colors: {
  custom: {
    50: '#d3ba6f',
    500: '#ba9e2f',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e2f;
$custom-light: #d3ba6f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e2f",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 47
  },
  "hsl": {
    "h": 47.914,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.70502,
    "c": 0.12869,
    "h": 94.3
  },
  "luminance": 0.35098
}

Semantic roles & 50–950 ramp

primary
#BA9E2F
secondary
#7C8BC9
accent
#65E345
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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