#BD31B1#BD31B1

#BD31B1 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.221 H 331.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BD31B1
RGBrgb(189, 49, 177)
HSLhsl(305, 59%, 47%)
HSVhsv(305, 74%, 74%)
CMYKcmyk(0%, 74.1%, 6.3%, 25.9%)
CIE-LABlab(47.23, 67.99, -37.87)
CIE-LCHlch(47.23, 77.82, 330.88°)
OKLaboklab(57.43% 0.1948 -0.1042)
OKLCHoklch(57.43% 0.221 331.9)
XYZxyz(30.0204, 16.1922, 43.1307)
Luminance0.1619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31B1 #31BD3D
analogous
#8331BD #BD31B1 #BD316B
triadic
#BD31B1 #B1BD31 #31B1BD
tetradic
#BD31B1 #BD8331 #31BD3D #316BBD
square
#BD31B1 #BD8331 #31BD3D #316BBD
split-complementary
#BD31B1 #6BBD31 #31BD83
monochromatic
#5C1856 #8C2483 #BD31B1 #D458C9 #E088D9

Accessibility & contrast

On white

4.96
#BD31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BD31B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31B1
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31B1#FFFFFF#000000##FFFFFF
##BD31B11.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2663B4
Deuteranopia (green-blind)
#5E77AE
Tritanopia (blue-blind)
#C5416E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bd31b1;
/* rgb */ color: rgb(189, 49, 177);
/* oklch */ color: oklch(57.4% 0.221 331.9);
Tailwind
colors: {
  custom: {
    50: '#d578c9',
    500: '#bd31b1',
    950: '#000000',
  },
}
SCSS
$custom: #bd31b1;
$custom-light: #d578c9;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31b1",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 305.143,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57428,
    "c": 0.22095,
    "h": 331.9
  },
  "luminance": 0.1619
}

Semantic roles & 50–950 ramp

primary
#BD31B1
secondary
#80CA86
accent
#E25346
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BD31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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