#BD31B0#BD31B0

#BD31B0 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.220 H 332.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BD31B0
RGBrgb(189, 49, 176)
HSLhsl(306, 59%, 47%)
HSVhsv(306, 74%, 74%)
CMYKcmyk(0%, 74.1%, 6.9%, 25.9%)
CIE-LABlab(47.17, 67.83, -37.37)
CIE-LCHlch(47.17, 77.44, 331.15°)
OKLaboklab(57.37% 0.1948 -0.1027)
OKLCHoklch(57.37% 0.22 332.2)
XYZxyz(29.9211, 16.1525, 42.6077)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31B0 #31BD3E
analogous
#8431BD #BD31B0 #BD316A
triadic
#BD31B0 #B0BD31 #31B0BD
tetradic
#BD31B0 #BD8431 #31BD3E #316ABD
square
#BD31B0 #BD8431 #31BD3E #316ABD
split-complementary
#BD31B0 #6ABD31 #31BD84
monochromatic
#5C1855 #8C2483 #BD31B0 #D458C8 #E088D8

Accessibility & contrast

On white

4.96
#BD31B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BD31B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31B0
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31B0#FFFFFF#000000##FFFFFF
##BD31B01.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B3
Deuteranopia (green-blind)
#5F77AD
Tritanopia (blue-blind)
#C5416E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bd31b0;
/* rgb */ color: rgb(189, 49, 176);
/* oklch */ color: oklch(57.4% 0.220 332.2);
Tailwind
colors: {
  custom: {
    50: '#d578c8',
    500: '#bd31b0',
    950: '#000000',
  },
}
SCSS
$custom: #bd31b0;
$custom-light: #d578c8;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31b0",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 305.571,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57374,
    "c": 0.22023,
    "h": 332.2
  },
  "luminance": 0.1615
}

Semantic roles & 50–950 ramp

primary
#BD31B0
secondary
#80CA87
accent
#E25446
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BD31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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