#BA9D2B#BA9D2B

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

Color values

HEX#BA9D2B
RGBrgb(186, 157, 43)
HSLhsl(48, 62%, 45%)
HSVhsv(48, 77%, 73%)
CMYKcmyk(0%, 15.6%, 76.9%, 27.1%)
CIE-LABlab(65.54, -0.94, 59.47)
CIE-LCHlch(65.54, 59.47, 90.91°)
OKLaboklab(70.27% -0.009 0.1301)
OKLCHoklch(70.27% 0.13 94)
XYZxyz(32.7445, 34.7294, 7.2638)
Luminance0.3473 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D2B #2B48BA
analogous
#BA552B #BA9D2B #90BA2B
triadic
#BA9D2B #2BBA9D #9D2BBA
tetradic
#BA9D2B #2BBA55 #2B48BA #BA2B90
square
#BA9D2B #2BBA55 #2B48BA #BA2B90
split-complementary
#BA9D2B #2B90BA #552BBA
monochromatic
#574914 #887320 #BA9D2B #D6BA4C #E1CD7E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA9D2B#FFFFFF#000000##000000
##BA9D2B1.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)
#AE9A15
Deuteranopia (green-blind)
#B6A332
Tritanopia (blue-blind)
#C99087
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d2b;
/* rgb */ color: rgb(186, 157, 43);
/* oklch */ color: oklch(70.3% 0.130 94.0);
Tailwind
colors: {
  custom: {
    50: '#d3b96d',
    500: '#ba9d2b',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d2b;
$custom-light: #d3b96d;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d2b",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 43
  },
  "hsl": {
    "h": 47.832,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.70266,
    "c": 0.13037,
    "h": 94
  },
  "luminance": 0.34727
}

Semantic roles & 50–950 ramp

primary
#BA9D2B
secondary
#7788CA
accent
#63E642
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151108
muted
#83807B

Preview Lab

Preview with #BA9D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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