#BD31B6#BD31B6

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

Color values

HEX#BD31B6
RGBrgb(189, 49, 182)
HSLhsl(303, 59%, 47%)
HSVhsv(303, 74%, 74%)
CMYKcmyk(0%, 74.1%, 3.7%, 25.9%)
CIE-LABlab(47.49, 68.76, -40.39)
CIE-LCHlch(47.49, 79.75, 329.57°)
OKLaboklab(57.7% 0.195 -0.1115)
OKLCHoklch(57.7% 0.225 330.2)
XYZxyz(30.5279, 16.3952, 45.8036)
Luminance0.1639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31B6 #31BD38
analogous
#7E31BD #BD31B6 #BD3170
triadic
#BD31B6 #B6BD31 #31B6BD
tetradic
#BD31B6 #BD7E31 #31BD38 #3170BD
square
#BD31B6 #BD7E31 #31BD38 #3170BD
split-complementary
#BD31B6 #70BD31 #31BD7E
monochromatic
#5C1858 #8C2487 #BD31B6 #D458CD #E088DC

Accessibility & contrast

On white

4.91
#BD31B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#BD31B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31B6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31B6#FFFFFF#000000##FFFFFF
##BD31B61.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BA
Deuteranopia (green-blind)
#5C77B3
Tritanopia (blue-blind)
#C44471
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bd31b6;
/* rgb */ color: rgb(189, 49, 182);
/* oklch */ color: oklch(57.7% 0.225 330.2);
Tailwind
colors: {
  custom: {
    50: '#d578cc',
    500: '#bd31b6',
    950: '#000000',
  },
}
SCSS
$custom: #bd31b6;
$custom-light: #d578cc;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31b6",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 303,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57701,
    "c": 0.2246,
    "h": 330.2
  },
  "luminance": 0.16393
}

Semantic roles & 50–950 ramp

primary
#BD31B6
secondary
#80CA84
accent
#E24E46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BD31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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