#BA31BF#BA31BF

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

Color values

HEX#BA31BF
RGBrgb(186, 49, 191)
HSLhsl(298, 59%, 47%)
HSVhsv(298, 74%, 75%)
CMYKcmyk(2.6%, 74.3%, 0%, 25.1%)
CIE-LABlab(47.49, 69.57, -45.67)
CIE-LCHlch(47.49, 83.22, 326.71°)
OKLaboklab(57.77% 0.1918 -0.1269)
OKLCHoklch(57.77% 0.23 326.5)
XYZxyz(30.7514, 16.3994, 50.8258)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA31BF #36BF31
analogous
#7331BF #BA31BF #BF317D
triadic
#BA31BF #BFBA31 #31BFBA
tetradic
#BA31BF #BF7331 #36BF31 #317DBF
square
#BA31BF #BF7331 #36BF31 #317DBF
split-complementary
#BA31BF #7DBF31 #31BF73
monochromatic
#5B185E #8B258E #BA31BF #D059D4 #DE8AE1

Accessibility & contrast

On white

4.91
#BA31BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#BA31BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA31BF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA31BF#FFFFFF#000000##FFFFFF
##BA31BF1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0166C3
Deuteranopia (green-blind)
#5477BC
Tritanopia (blue-blind)
#BF4976
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba31bf;
/* rgb */ color: rgb(186, 49, 191);
/* oklch */ color: oklch(57.8% 0.230 326.5);
Tailwind
colors: {
  custom: {
    50: '#d378d3',
    500: '#ba31bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba31bf;
$custom-light: #d378d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba31bf",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 297.887,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57771,
    "c": 0.22995,
    "h": 326.5
  },
  "luminance": 0.16397
}

Semantic roles & 50–950 ramp

primary
#BA31BF
secondary
#84CB81
accent
#E2454B
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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