#BD31B7#BD31B7

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

Color values

HEX#BD31B7
RGBrgb(189, 49, 183)
HSLhsl(303, 59%, 47%)
HSVhsv(303, 74%, 74%)
CMYKcmyk(0%, 74.1%, 3.2%, 25.9%)
CIE-LABlab(47.54, 68.92, -40.89)
CIE-LCHlch(47.54, 80.14, 329.32°)
OKLaboklab(57.76% 0.195 -0.113)
OKLCHoklch(57.76% 0.225 329.9)
XYZxyz(30.6317, 16.4367, 46.3498)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31B7 #31BD37
analogous
#7D31BD #BD31B7 #BD3171
triadic
#BD31B7 #B7BD31 #31B7BD
tetradic
#BD31B7 #BD7D31 #31BD37 #3171BD
square
#BD31B7 #BD7D31 #31BD37 #3171BD
split-complementary
#BD31B7 #71BD31 #31BD7D
monochromatic
#5C1859 #8C2488 #BD31B7 #D458CE #E088DC

Accessibility & contrast

On white

4.90
#BD31B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BD31B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31B7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31B7#FFFFFF#000000##FFFFFF
##BD31B71.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E65BB
Deuteranopia (green-blind)
#5B77B4
Tritanopia (blue-blind)
#C44472
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bd31b7;
/* rgb */ color: rgb(189, 49, 183);
/* oklch */ color: oklch(57.8% 0.225 329.9);
Tailwind
colors: {
  custom: {
    50: '#d578cd',
    500: '#bd31b7',
    950: '#000000',
  },
}
SCSS
$custom: #bd31b7;
$custom-light: #d578cd;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31b7",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 302.571,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57757,
    "c": 0.22534,
    "h": 329.9
  },
  "luminance": 0.16434
}

Semantic roles & 50–950 ramp

primary
#BD31B7
secondary
#80CA83
accent
#E24C46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BD31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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