#BA9D2F#BA9D2F

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

Color values

HEX#BA9D2F
RGBrgb(186, 157, 47)
HSLhsl(47, 60%, 46%)
HSVhsv(47, 75%, 73%)
CMYKcmyk(0%, 15.6%, 74.7%, 27.1%)
CIE-LABlab(65.56, -0.77, 58.03)
CIE-LCHlch(65.56, 58.03, 90.76°)
OKLaboklab(70.29% -0.0081 0.1278)
OKLCHoklch(70.29% 0.128 93.6)
XYZxyz(32.8215, 34.7602, 7.6694)
Luminance0.3476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D2F #2F4CBA
analogous
#BA572F #BA9D2F #91BA2F
triadic
#BA9D2F #2FBA9D #9D2FBA
tetradic
#BA9D2F #2FBA57 #2F4CBA #BA2F91
square
#BA9D2F #2FBA57 #2F4CBA #BA2F91
split-complementary
#BA9D2F #2F91BA #572FBA
monochromatic
#584B16 #897423 #BA9D2F #D3B953 #E0CD84

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9D2F#FFFFFF#000000##000000
##BA9D2F1.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)
#AE9A1C
Deuteranopia (green-blind)
#B5A335
Tritanopia (blue-blind)
#C99087
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d2f;
/* rgb */ color: rgb(186, 157, 47);
/* oklch */ color: oklch(70.3% 0.128 93.6);
Tailwind
colors: {
  custom: {
    50: '#d3b96f',
    500: '#ba9d2f',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d2f;
$custom-light: #d3b96f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d2f",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 47
  },
  "hsl": {
    "h": 47.482,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.70293,
    "c": 0.12805,
    "h": 93.6
  },
  "luminance": 0.34758
}

Semantic roles & 50–950 ramp

primary
#BA9D2F
secondary
#7C8CC9
accent
#66E345
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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