#BA9B2F#BA9B2F

#BA9B2F is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.9% C 0.127 H 92.3°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#BA9B2F
RGBrgb(186, 155, 47)
HSLhsl(47, 60%, 46%)
HSVhsv(47, 75%, 73%)
CMYKcmyk(0%, 16.7%, 74.7%, 27.1%)
CIE-LABlab(65.03, 0.31, 57.52)
CIE-LCHlch(65.03, 57.52, 89.69°)
OKLaboklab(69.88% -0.005 0.1267)
OKLCHoklch(69.88% 0.127 92.3)
XYZxyz(32.4859, 34.0890, 7.5575)
Luminance0.3409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9B2F #2F4EBA
analogous
#BA552F #BA9B2F #93BA2F
triadic
#BA9B2F #2FBA9B #9B2FBA
tetradic
#BA9B2F #2FBA55 #2F4EBA #BA2F93
square
#BA9B2F #2FBA55 #2F4EBA #BA2F93
split-complementary
#BA9B2F #2F93BA #552FBA
monochromatic
#584A16 #897223 #BA9B2F #D3B753 #E0CB84

Accessibility & contrast

On white

2.69
#BA9B2F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#BA9B2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9B2F
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9B2F#FFFFFF#000000##000000
##BA9B2F1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC991D
Deuteranopia (green-blind)
#B4A235
Tritanopia (blue-blind)
#C98E86
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba9b2f;
/* rgb */ color: rgb(186, 155, 47);
/* oklch */ color: oklch(69.9% 0.127 92.3);
Tailwind
colors: {
  custom: {
    50: '#d3b86f',
    500: '#ba9b2f',
    950: '#000000',
  },
}
SCSS
$custom: #ba9b2f;
$custom-light: #d3b86f;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9b2f",
  "rgb": {
    "r": 186,
    "g": 155,
    "b": 47
  },
  "hsl": {
    "h": 46.619,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.69876,
    "c": 0.12682,
    "h": 92.3
  },
  "luminance": 0.34087
}

Semantic roles & 50–950 ramp

primary
#BA9B2F
secondary
#7C8DC9
accent
#68E345
background
#FDFBF7
surface
#FBF6ED
border
#D4D0C8
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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