#BD31BD#BD31BD

#BD31BD is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.1% C 0.230 H 328.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BD31BD
RGBrgb(189, 49, 189)
HSLhsl(300, 59%, 47%)
HSVhsv(300, 74%, 74%)
CMYKcmyk(0%, 74.1%, 0%, 25.9%)
CIE-LABlab(47.87, 69.87, -43.88)
CIE-LCHlch(47.87, 82.51, 327.87°)
OKLaboklab(58.1% 0.195 -0.1216)
OKLCHoklch(58.1% 0.23 328)
XYZxyz(31.2695, 16.6919, 49.7091)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31BD #31BD31
analogous
#7731BD #BD31BD #BD3177
triadic
#BD31BD #BDBD31 #31BDBD
tetradic
#BD31BD #BD7731 #31BD31 #3177BD
square
#BD31BD #BD7731 #31BD31 #3177BD
split-complementary
#BD31BD #77BD31 #31BD77
monochromatic
#5C185C #8C248C #BD31BD #D458D4 #E088E0

Accessibility & contrast

On white

4.84
#BD31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BD31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31BD
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31BD#FFFFFF#000000##FFFFFF
##BD31BD1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1166C1
Deuteranopia (green-blind)
#5878BA
Tritanopia (blue-blind)
#C34775
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #bd31bd;
/* rgb */ color: rgb(189, 49, 189);
/* oklch */ color: oklch(58.1% 0.230 328.0);
Tailwind
colors: {
  custom: {
    50: '#d578d1',
    500: '#bd31bd',
    950: '#000000',
  },
}
SCSS
$custom: #bd31bd;
$custom-light: #d578d1;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31bd",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 300,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.58096,
    "c": 0.2298,
    "h": 328
  },
  "luminance": 0.1669
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BD31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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