#BA31B0#BA31B0

#BA31B0 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.9% C 0.219 H 331.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA31B0
RGBrgb(186, 49, 176)
HSLhsl(304, 58%, 46%)
HSVhsv(304, 74%, 73%)
CMYKcmyk(0%, 73.7%, 5.4%, 27.1%)
CIE-LABlab(46.67, 67.17, -38.19)
CIE-LCHlch(46.67, 77.27, 330.38°)
OKLaboklab(56.92% 0.1917 -0.1052)
OKLCHoklch(56.92% 0.219 331.3)
XYZxyz(29.1845, 15.7727, 42.5732)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA31B0 #31BA3B
analogous
#7F31BA #BA31B0 #BA316B
triadic
#BA31B0 #B0BA31 #31B0BA
tetradic
#BA31B0 #BA7F31 #31BA3B #316BBA
square
#BA31B0 #BA7F31 #31BA3B #316BBA
split-complementary
#BA31B0 #6BBA31 #31BA7F
monochromatic
#591754 #8A2482 #BA31B0 #D256C9 #DF86D9

Accessibility & contrast

On white

5.06
#BA31B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA31B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA31B0
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA31B0#FFFFFF#000000##FFFFFF
##BA31B01.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2562B3
Deuteranopia (green-blind)
#5C75AD
Tritanopia (blue-blind)
#C2426E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba31b0;
/* rgb */ color: rgb(186, 49, 176);
/* oklch */ color: oklch(56.9% 0.219 331.3);
Tailwind
colors: {
  custom: {
    50: '#d377c8',
    500: '#ba31b0',
    950: '#000000',
  },
}
SCSS
$custom: #ba31b0;
$custom-light: #d377c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba31b0",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 304.38,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5692,
    "c": 0.2187,
    "h": 331.3
  },
  "luminance": 0.1577
}

Semantic roles & 50–950 ramp

primary
#BA31B0
secondary
#7EC983
accent
#E25246
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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