#BA31C1#BA31C1

#BA31C1 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.231 H 325.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA31C1
RGBrgb(186, 49, 193)
HSLhsl(297, 60%, 47%)
HSVhsv(297, 75%, 76%)
CMYKcmyk(3.6%, 74.6%, 0%, 24.3%)
CIE-LABlab(47.61, 69.90, -46.65)
CIE-LCHlch(47.61, 84.04, 326.28°)
OKLaboklab(57.89% 0.1917 -0.1298)
OKLCHoklch(57.89% 0.231 325.9)
XYZxyz(30.9730, 16.4881, 51.9929)
Luminance0.1649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA31C1 #38C131
analogous
#7231C1 #BA31C1 #C13180
triadic
#BA31C1 #C1BA31 #31C1BA
tetradic
#BA31C1 #C17231 #38C131 #3180C1
square
#BA31C1 #C17231 #38C131 #3180C1
split-complementary
#BA31C1 #80C131 #31C172
monochromatic
#5C185F #8B2590 #BA31C1 #CF5AD5 #DD8BE2

Accessibility & contrast

On white

4.89
#BA31C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#BA31C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA31C1
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA31C1#FFFFFF#000000##FFFFFF
##BA31C11.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C5
Deuteranopia (green-blind)
#5277BE
Tritanopia (blue-blind)
#BF4A77
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba31c1;
/* rgb */ color: rgb(186, 49, 193);
/* oklch */ color: oklch(57.9% 0.231 325.9);
Tailwind
colors: {
  custom: {
    50: '#d378d4',
    500: '#ba31c1',
    950: '#000000',
  },
}
SCSS
$custom: #ba31c1;
$custom-light: #d378d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba31c1",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 297.083,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57889,
    "c": 0.23148,
    "h": 325.9
  },
  "luminance": 0.16486
}

Semantic roles & 50–950 ramp

primary
#BA31C1
secondary
#86CC82
accent
#E3454D
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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