#BA4E9B#BA4E9B

#BA4E9B is a mid, vivid pink. Relative luminance 0.183; OKLCH L 58.9% C 0.165 H 340.2°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BA4E9B
RGBrgb(186, 78, 155)
HSLhsl(317, 44%, 52%)
HSVhsv(317, 58%, 73%)
CMYKcmyk(0%, 58.1%, 16.7%, 27.1%)
CIE-LABlab(49.81, 52.54, -20.89)
CIE-LCHlch(49.81, 56.54, 338.31°)
OKLaboklab(58.88% 0.1555 -0.0561)
OKLCHoklch(58.88% 0.165 340.2)
XYZxyz(28.8910, 18.2568, 33.0063)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E9B #4EBA6D
analogous
#A34EBA #BA4E9B #BA4E65
triadic
#BA4E9B #9BBA4E #4E9BBA
tetradic
#BA4E9B #BAA34E #4EBA6D #4E65BA
square
#BA4E9B #BAA34E #4EBA6D #4E65BA
split-complementary
#BA4E9B #65BA4E #4EBAA3
monochromatic
#662854 #923978 #BA4E9B #CB7AB4 #DCA6CD

Accessibility & contrast

On white

4.52
#BA4E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#BA4E9B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4E9B
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4E9B#FFFFFF#000000##000000
##BA4E9B1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#546C9D
Deuteranopia (green-blind)
#737D98
Tritanopia (blue-blind)
#C4506E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba4e9b;
/* rgb */ color: rgb(186, 78, 155);
/* oklch */ color: oklch(58.9% 0.165 340.2);
Tailwind
colors: {
  custom: {
    50: '#d185b8',
    500: '#ba4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e9b;
$custom-light: #d185b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e9b",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 317.222,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58884,
    "c": 0.1653,
    "h": 340.2
  },
  "luminance": 0.18254
}

Semantic roles & 50–950 ramp

primary
#BA4E9B
secondary
#9ACAA8
accent
#D47954
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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