#BD31AB#BD31AB

#BD31AB is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.1% C 0.217 H 333.9°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BD31AB
RGBrgb(189, 49, 171)
HSLhsl(308, 59%, 47%)
HSVhsv(308, 74%, 74%)
CMYKcmyk(0%, 74.1%, 9.5%, 25.9%)
CIE-LABlab(46.92, 67.08, -34.82)
CIE-LCHlch(46.92, 75.58, 332.57°)
OKLaboklab(57.11% 0.1945 -0.0954)
OKLCHoklch(57.11% 0.217 333.9)
XYZxyz(29.4355, 15.9583, 40.0502)
Luminance0.1596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31AB #31BD43
analogous
#8931BD #BD31AB #BD3165
triadic
#BD31AB #ABBD31 #31ABBD
tetradic
#BD31AB #BD8931 #31BD43 #3165BD
square
#BD31AB #BD8931 #31BD43 #3165BD
split-complementary
#BD31AB #65BD31 #31BD89
monochromatic
#5C1853 #8C247F #BD31AB #D458C4 #E088D5

Accessibility & contrast

On white

5.01
#BD31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BD31AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31AB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31AB#FFFFFF#000000##FFFFFF
##BD31AB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D62AE
Deuteranopia (green-blind)
#6176A8
Tritanopia (blue-blind)
#C63E6B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bd31ab;
/* rgb */ color: rgb(189, 49, 171);
/* oklch */ color: oklch(57.1% 0.217 333.9);
Tailwind
colors: {
  custom: {
    50: '#d577c4',
    500: '#bd31ab',
    950: '#000000',
  },
}
SCSS
$custom: #bd31ab;
$custom-light: #d577c4;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31ab",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 307.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57109,
    "c": 0.21666,
    "h": 333.9
  },
  "luminance": 0.15956
}

Semantic roles & 50–950 ramp

primary
#BD31AB
secondary
#80CA89
accent
#E25A46
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BD31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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