#BD31B9#BD31B9

#BD31B9 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.9% C 0.227 H 329.3°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BD31B9
RGBrgb(189, 49, 185)
HSLhsl(302, 59%, 47%)
HSVhsv(302, 74%, 74%)
CMYKcmyk(0%, 74.1%, 2.1%, 25.9%)
CIE-LABlab(47.65, 69.23, -41.89)
CIE-LCHlch(47.65, 80.92, 328.82°)
OKLaboklab(57.87% 0.195 -0.1159)
OKLCHoklch(57.87% 0.227 329.3)
XYZxyz(30.8413, 16.5206, 47.4539)
Luminance0.1652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31B9 #31BD35
analogous
#7B31BD #BD31B9 #BD3173
triadic
#BD31B9 #B9BD31 #31B9BD
tetradic
#BD31B9 #BD7B31 #31BD35 #3173BD
square
#BD31B9 #BD7B31 #31BD35 #3173BD
split-complementary
#BD31B9 #73BD31 #31BD7B
monochromatic
#5C185A #8C2489 #BD31B9 #D458D0 #E088DE

Accessibility & contrast

On white

4.88
#BD31B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#BD31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31B9
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31B9#FFFFFF#000000##FFFFFF
##BD31B91.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A65BD
Deuteranopia (green-blind)
#5A78B6
Tritanopia (blue-blind)
#C44573
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bd31b9;
/* rgb */ color: rgb(189, 49, 185);
/* oklch */ color: oklch(57.9% 0.227 329.3);
Tailwind
colors: {
  custom: {
    50: '#d578ce',
    500: '#bd31b9',
    950: '#000000',
  },
}
SCSS
$custom: #bd31b9;
$custom-light: #d578ce;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31b9",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 301.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57869,
    "c": 0.22681,
    "h": 329.3
  },
  "luminance": 0.16518
}

Semantic roles & 50–950 ramp

primary
#BD31B9
secondary
#80CA82
accent
#E24A46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BD31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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