#BD31B2#BD31B2

#BD31B2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.222 H 331.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BD31B2
RGBrgb(189, 49, 178)
HSLhsl(305, 59%, 47%)
HSVhsv(305, 74%, 74%)
CMYKcmyk(0%, 74.1%, 5.8%, 25.9%)
CIE-LABlab(47.28, 68.14, -38.38)
CIE-LCHlch(47.28, 78.20, 330.61°)
OKLaboklab(57.48% 0.1949 -0.1057)
OKLCHoklch(57.48% 0.222 331.5)
XYZxyz(30.1205, 16.2322, 43.6576)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31B2 #31BD3C
analogous
#8231BD #BD31B2 #BD316C
triadic
#BD31B2 #B2BD31 #31B2BD
tetradic
#BD31B2 #BD8231 #31BD3C #316CBD
square
#BD31B2 #BD8231 #31BD3C #316CBD
split-complementary
#BD31B2 #6CBD31 #31BD82
monochromatic
#5C1856 #8C2484 #BD31B2 #D458CA #E088D9

Accessibility & contrast

On white

4.95
#BD31B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#BD31B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31B2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31B2#FFFFFF#000000##FFFFFF
##BD31B21.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B5
Deuteranopia (green-blind)
#5E77AF
Tritanopia (blue-blind)
#C5426F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bd31b2;
/* rgb */ color: rgb(189, 49, 178);
/* oklch */ color: oklch(57.5% 0.222 331.5);
Tailwind
colors: {
  custom: {
    50: '#d578c9',
    500: '#bd31b2',
    950: '#000000',
  },
}
SCSS
$custom: #bd31b2;
$custom-light: #d578c9;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31b2",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 304.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57482,
    "c": 0.22168,
    "h": 331.5
  },
  "luminance": 0.1623
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BD31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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