#BA31C0#BA31C0

#BA31C0 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.8% C 0.231 H 326.2°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA31C0
RGBrgb(186, 49, 192)
HSLhsl(297, 59%, 47%)
HSVhsv(297, 74%, 75%)
CMYKcmyk(3.1%, 74.5%, 0%, 24.7%)
CIE-LABlab(47.55, 69.73, -46.16)
CIE-LCHlch(47.55, 83.63, 326.50°)
OKLaboklab(57.83% 0.1917 -0.1283)
OKLCHoklch(57.83% 0.231 326.2)
XYZxyz(30.8618, 16.4436, 51.4074)
Luminance0.1644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA31C0 #37C031
analogous
#7331C0 #BA31C0 #C0317E
triadic
#BA31C0 #C0BA31 #31C0BA
tetradic
#BA31C0 #C07331 #37C031 #317EC0
square
#BA31C0 #C07331 #37C031 #317EC0
split-complementary
#BA31C0 #7EC031 #31C073
monochromatic
#5C185E #8B258F #BA31C0 #D059D5 #DE8AE1

Accessibility & contrast

On white

4.90
#BA31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BA31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA31C0
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA31C0#FFFFFF#000000##FFFFFF
##BA31C01.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C4
Deuteranopia (green-blind)
#5377BD
Tritanopia (blue-blind)
#BF4A77
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba31c0;
/* rgb */ color: rgb(186, 49, 192);
/* oklch */ color: oklch(57.8% 0.231 326.2);
Tailwind
colors: {
  custom: {
    50: '#d378d3',
    500: '#ba31c0',
    950: '#000000',
  },
}
SCSS
$custom: #ba31c0;
$custom-light: #d378d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba31c0",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 297.483,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5783,
    "c": 0.23071,
    "h": 326.2
  },
  "luminance": 0.16441
}

Semantic roles & 50–950 ramp

primary
#BA31C0
secondary
#85CB82
accent
#E3454C
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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