#BA9C2F#BA9C2F

#BA9C2F is a light, vivid yellow. Relative luminance 0.344; OKLCH L 70.1% C 0.127 H 93.0°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#BA9C2F
RGBrgb(186, 156, 47)
HSLhsl(47, 60%, 46%)
HSVhsv(47, 75%, 73%)
CMYKcmyk(0%, 16.1%, 74.7%, 27.1%)
CIE-LABlab(65.30, -0.23, 57.77)
CIE-LCHlch(65.30, 57.77, 90.23°)
OKLaboklab(70.08% -0.0066 0.1273)
OKLCHoklch(70.08% 0.127 93)
XYZxyz(32.6531, 34.4232, 7.6132)
Luminance0.3442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9C2F #2F4DBA
analogous
#BA562F #BA9C2F #93BA2F
triadic
#BA9C2F #2FBA9C #9C2FBA
tetradic
#BA9C2F #2FBA56 #2F4DBA #BA2F93
square
#BA9C2F #2FBA56 #2F4DBA #BA2F93
split-complementary
#BA9C2F #2F93BA #562FBA
monochromatic
#584A16 #897323 #BA9C2F #D3B853 #E0CC84

Accessibility & contrast

On white

2.66
#BA9C2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#BA9C2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9C2F
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9C2F#FFFFFF#000000##000000
##BA9C2F1.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD991D
Deuteranopia (green-blind)
#B5A235
Tritanopia (blue-blind)
#C98F87
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9c2f;
/* rgb */ color: rgb(186, 156, 47);
/* oklch */ color: oklch(70.1% 0.127 93.0);
Tailwind
colors: {
  custom: {
    50: '#d3b86f',
    500: '#ba9c2f',
    950: '#000000',
  },
}
SCSS
$custom: #ba9c2f;
$custom-light: #d3b86f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9c2f",
  "rgb": {
    "r": 186,
    "g": 156,
    "b": 47
  },
  "hsl": {
    "h": 47.05,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.70084,
    "c": 0.12742,
    "h": 93
  },
  "luminance": 0.34421
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA9C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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