#BA9D27#BA9D27

#BA9D27 is a light, vivid yellow. Relative luminance 0.347; OKLCH L 70.2% C 0.133 H 94.3°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#BA9D27
RGBrgb(186, 157, 39)
HSLhsl(48, 65%, 44%)
HSVhsv(48, 79%, 73%)
CMYKcmyk(0%, 15.6%, 79%, 27.1%)
CIE-LABlab(65.52, -1.10, 60.82)
CIE-LCHlch(65.52, 60.83, 91.03°)
OKLaboklab(70.24% -0.0099 0.1321)
OKLCHoklch(70.24% 0.133 94.3)
XYZxyz(32.6747, 34.7014, 6.8961)
Luminance0.3470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9D27 #2744BA
analogous
#BA5427 #BA9D27 #8EBA27
triadic
#BA9D27 #27BA9D #9D27BA
tetradic
#BA9D27 #27BA54 #2744BA #BA278E
square
#BA9D27 #27BA54 #2744BA #BA278E
split-complementary
#BA9D27 #278EBA #5427BA
monochromatic
#554812 #87721C #BA9D27 #D8BB46 #E3CE79

Accessibility & contrast

On white

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

On black

7.94
#BA9D27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9D27
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9D27#FFFFFF#000000##000000
##BA9D271.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A0B
Deuteranopia (green-blind)
#B6A32F
Tritanopia (blue-blind)
#C99087
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba9d27;
/* rgb */ color: rgb(186, 157, 39);
/* oklch */ color: oklch(70.2% 0.133 94.3);
Tailwind
colors: {
  custom: {
    50: '#d3b96b',
    500: '#ba9d27',
    950: '#000000',
  },
}
SCSS
$custom: #ba9d27;
$custom-light: #d3b96b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9d27",
  "rgb": {
    "r": 186,
    "g": 157,
    "b": 39
  },
  "hsl": {
    "h": 48.163,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70242,
    "c": 0.1325,
    "h": 94.3
  },
  "luminance": 0.347
}

Semantic roles & 50–950 ramp

primary
#BA9D27
secondary
#7284CB
accent
#61E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9D27

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

Preview Lab → · Contrast checker → · Palette generator →

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