#BA9E27#BA9E27

#BA9E27 is a light, vivid yellow. Relative luminance 0.350; OKLCH L 70.5% C 0.133 H 94.9°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#BA9E27
RGBrgb(186, 158, 39)
HSLhsl(49, 65%, 44%)
HSVhsv(49, 79%, 73%)
CMYKcmyk(0%, 15.1%, 79%, 27.1%)
CIE-LABlab(65.78, -1.63, 61.06)
CIE-LCHlch(65.78, 61.08, 91.53°)
OKLaboklab(70.45% -0.0114 0.1327)
OKLCHoklch(70.45% 0.133 94.9)
XYZxyz(32.8446, 35.0412, 6.9527)
Luminance0.3504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA9E27 #2743BA
analogous
#BA5427 #BA9E27 #8DBA27
triadic
#BA9E27 #27BA9E #9E27BA
tetradic
#BA9E27 #27BA54 #2743BA #BA278D
square
#BA9E27 #27BA54 #2743BA #BA278D
split-complementary
#BA9E27 #278DBA #5427BA
monochromatic
#554812 #87731C #BA9E27 #D8BC46 #E3CF79

Accessibility & contrast

On white

2.62
#BA9E27 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#BA9E27 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA9E27
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA9E27#FFFFFF#000000##000000
##BA9E271.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B0A
Deuteranopia (green-blind)
#B6A32F
Tritanopia (blue-blind)
#C99188
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba9e27;
/* rgb */ color: rgb(186, 158, 39);
/* oklch */ color: oklch(70.5% 0.133 94.9);
Tailwind
colors: {
  custom: {
    50: '#d3ba6c',
    500: '#ba9e27',
    950: '#000000',
  },
}
SCSS
$custom: #ba9e27;
$custom-light: #d3ba6c;
$custom-dark: #000000;
JSON
{
  "hex": "#ba9e27",
  "rgb": {
    "r": 186,
    "g": 158,
    "b": 39
  },
  "hsl": {
    "h": 48.571,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70452,
    "c": 0.13314,
    "h": 94.9
  },
  "luminance": 0.35039
}

Semantic roles & 50–950 ramp

primary
#BA9E27
secondary
#7283CB
accent
#60E840
background
#FDFBF6
surface
#FBF6EC
border
#D4D0C7
text
#151107
muted
#83807A

Preview Lab

Preview with #BA9E27

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

Preview Lab → · Contrast checker → · Palette generator →

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