#BA31AE#BA31AE

#BA31AE is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.217 H 331.9°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA31AE
RGBrgb(186, 49, 174)
HSLhsl(305, 58%, 46%)
HSVhsv(305, 74%, 73%)
CMYKcmyk(0%, 73.7%, 6.5%, 27.1%)
CIE-LABlab(46.57, 66.86, -37.17)
CIE-LCHlch(46.57, 76.50, 330.93°)
OKLaboklab(56.81% 0.1917 -0.1023)
OKLCHoklch(56.81% 0.217 331.9)
XYZxyz(28.9880, 15.6941, 41.5387)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA31AE #31BA3D
analogous
#8131BA #BA31AE #BA316A
triadic
#BA31AE #AEBA31 #31AEBA
tetradic
#BA31AE #BA8131 #31BA3D #316ABA
square
#BA31AE #BA8131 #31BA3D #316ABA
split-complementary
#BA31AE #6ABA31 #31BA81
monochromatic
#591753 #8A2481 #BA31AE #D256C8 #DF86D7

Accessibility & contrast

On white

5.07
#BA31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA31AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA31AE
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA31AE#FFFFFF#000000##FFFFFF
##BA31AE1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2762B1
Deuteranopia (green-blind)
#5D75AB
Tritanopia (blue-blind)
#C2416D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba31ae;
/* rgb */ color: rgb(186, 49, 174);
/* oklch */ color: oklch(56.8% 0.217 331.9);
Tailwind
colors: {
  custom: {
    50: '#d377c6',
    500: '#ba31ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba31ae;
$custom-light: #d377c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba31ae",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 305.255,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56812,
    "c": 0.21724,
    "h": 331.9
  },
  "luminance": 0.15692
}

Semantic roles & 50–950 ramp

primary
#BA31AE
secondary
#7EC985
accent
#E25446
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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