#BD31BC#BD31BC

#BD31BC is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.0% C 0.229 H 328.3°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BD31BC
RGBrgb(189, 49, 188)
HSLhsl(300, 59%, 47%)
HSVhsv(300, 74%, 74%)
CMYKcmyk(0%, 74.1%, 0.5%, 25.9%)
CIE-LABlab(47.81, 69.71, -43.39)
CIE-LCHlch(47.81, 82.11, 328.10°)
OKLaboklab(58.04% 0.195 -0.1202)
OKLCHoklch(58.04% 0.229 328.3)
XYZxyz(31.1613, 16.6486, 49.1395)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31BC #31BD32
analogous
#7831BD #BD31BC #BD3176
triadic
#BD31BC #BCBD31 #31BCBD
tetradic
#BD31BC #BD7831 #31BD32 #3176BD
square
#BD31BC #BD7831 #31BD32 #3176BD
split-complementary
#BD31BC #76BD31 #31BD78
monochromatic
#5C185B #8C248C #BD31BC #D458D3 #E088E0

Accessibility & contrast

On white

4.85
#BD31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#BD31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31BC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31BC#FFFFFF#000000##FFFFFF
##BD31BC1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1466C0
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#C34775
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bd31bc;
/* rgb */ color: rgb(189, 49, 188);
/* oklch */ color: oklch(58.0% 0.229 328.3);
Tailwind
colors: {
  custom: {
    50: '#d578d1',
    500: '#bd31bc',
    950: '#000000',
  },
}
SCSS
$custom: #bd31bc;
$custom-light: #d578d1;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31bc",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 300.429,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.58039,
    "c": 0.22905,
    "h": 328.3
  },
  "luminance": 0.16646
}

Semantic roles & 50–950 ramp

primary
#BD31BC
secondary
#80CA80
accent
#E24746
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BD31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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