#BA4E9D#BA4E9D

#BA4E9D is a mid, vivid pink. Relative luminance 0.183; OKLCH L 59.0% C 0.167 H 339.3°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA4E9D
RGBrgb(186, 78, 157)
HSLhsl(316, 44%, 52%)
HSVhsv(316, 58%, 73%)
CMYKcmyk(0%, 58.1%, 15.6%, 27.1%)
CIE-LABlab(49.89, 52.84, -21.95)
CIE-LCHlch(49.89, 57.22, 337.44°)
OKLaboklab(58.97% 0.1559 -0.0591)
OKLCHoklch(58.97% 0.167 339.3)
XYZxyz(29.0604, 18.3246, 33.8982)
Luminance0.1832 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E9D #4EBA6B
analogous
#A14EBA #BA4E9D #BA4E67
triadic
#BA4E9D #9DBA4E #4E9DBA
tetradic
#BA4E9D #BAA14E #4EBA6B #4E67BA
square
#BA4E9D #BAA14E #4EBA6B #4E67BA
split-complementary
#BA4E9D #67BA4E #4EBAA1
monochromatic
#662855 #92397A #BA4E9D #CB7AB5 #DCA6CE

Accessibility & contrast

On white

4.50
#BA4E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#BA4E9D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4E9D
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4E9D#FFFFFF#000000##000000
##BA4E9D1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#536CA0
Deuteranopia (green-blind)
#727D9A
Tritanopia (blue-blind)
#C4516F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4e9d;
/* rgb */ color: rgb(186, 78, 157);
/* oklch */ color: oklch(59.0% 0.167 339.3);
Tailwind
colors: {
  custom: {
    50: '#d185ba',
    500: '#ba4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e9d;
$custom-light: #d185ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e9d",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 316.111,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58971,
    "c": 0.16673,
    "h": 339.3
  },
  "luminance": 0.18322
}

Semantic roles & 50–950 ramp

primary
#BA4E9D
secondary
#9ACAA7
accent
#D47654
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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