#BD31B4#BD31B4

#BD31B4 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.223 H 330.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BD31B4
RGBrgb(189, 49, 180)
HSLhsl(304, 59%, 47%)
HSVhsv(304, 74%, 74%)
CMYKcmyk(0%, 74.1%, 4.8%, 25.9%)
CIE-LABlab(47.38, 68.45, -39.39)
CIE-LCHlch(47.38, 78.97, 330.08°)
OKLaboklab(57.59% 0.1949 -0.1086)
OKLCHoklch(57.59% 0.223 330.9)
XYZxyz(30.3227, 16.3132, 44.7229)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31B4 #31BD3A
analogous
#8031BD #BD31B4 #BD316E
triadic
#BD31B4 #B4BD31 #31B4BD
tetradic
#BD31B4 #BD8031 #31BD3A #316EBD
square
#BD31B4 #BD8031 #31BD3A #316EBD
split-complementary
#BD31B4 #6EBD31 #31BD80
monochromatic
#5C1857 #8C2486 #BD31B4 #D458CC #E088DB

Accessibility & contrast

On white

4.93
#BD31B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BD31B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31B4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31B4#FFFFFF#000000##FFFFFF
##BD31B41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2264B8
Deuteranopia (green-blind)
#5D77B1
Tritanopia (blue-blind)
#C44370
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bd31b4;
/* rgb */ color: rgb(189, 49, 180);
/* oklch */ color: oklch(57.6% 0.223 330.9);
Tailwind
colors: {
  custom: {
    50: '#d578cb',
    500: '#bd31b4',
    950: '#000000',
  },
}
SCSS
$custom: #bd31b4;
$custom-light: #d578cb;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31b4",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 303.857,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57591,
    "c": 0.22313,
    "h": 330.9
  },
  "luminance": 0.16311
}

Semantic roles & 50–950 ramp

primary
#BD31B4
secondary
#80CA85
accent
#E25046
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BD31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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