#BA31AA#BA31AA

#BA31AA is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.214 H 333.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA31AA
RGBrgb(186, 49, 170)
HSLhsl(307, 58%, 46%)
HSVhsv(307, 74%, 73%)
CMYKcmyk(0%, 73.7%, 8.6%, 27.1%)
CIE-LABlab(46.37, 66.25, -35.13)
CIE-LCHlch(46.37, 74.99, 332.06°)
OKLaboklab(56.6% 0.1915 -0.0964)
OKLCHoklch(56.6% 0.214 333.3)
XYZxyz(28.6039, 15.5404, 39.5155)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA31AA #31BA41
analogous
#8531BA #BA31AA #BA3165
triadic
#BA31AA #AABA31 #31AABA
tetradic
#BA31AA #BA8531 #31BA41 #3165BA
square
#BA31AA #BA8531 #31BA41 #3165BA
split-complementary
#BA31AA #65BA31 #31BA85
monochromatic
#591751 #8A247E #BA31AA #D256C4 #DF86D5

Accessibility & contrast

On white

5.11
#BA31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA31AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA31AA
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA31AA#FFFFFF#000000##FFFFFF
##BA31AA1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C61AD
Deuteranopia (green-blind)
#5F75A7
Tritanopia (blue-blind)
#C23F6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba31aa;
/* rgb */ color: rgb(186, 49, 170);
/* oklch */ color: oklch(56.6% 0.214 333.3);
Tailwind
colors: {
  custom: {
    50: '#d377c3',
    500: '#ba31aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba31aa;
$custom-light: #d377c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba31aa",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 307.007,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56598,
    "c": 0.21435,
    "h": 333.3
  },
  "luminance": 0.15538
}

Semantic roles & 50–950 ramp

primary
#BA31AA
secondary
#7EC987
accent
#E25846
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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