#BD31B3#BD31B3

#BD31B3 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.5% C 0.222 H 331.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BD31B3
RGBrgb(189, 49, 179)
HSLhsl(304, 59%, 47%)
HSVhsv(304, 74%, 74%)
CMYKcmyk(0%, 74.1%, 5.3%, 25.9%)
CIE-LABlab(47.33, 68.29, -38.88)
CIE-LCHlch(47.33, 78.59, 330.34°)
OKLaboklab(57.54% 0.1949 -0.1071)
OKLCHoklch(57.54% 0.222 331.2)
XYZxyz(30.2212, 16.2726, 44.1883)
Luminance0.1627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31B3 #31BD3B
analogous
#8131BD #BD31B3 #BD316D
triadic
#BD31B3 #B3BD31 #31B3BD
tetradic
#BD31B3 #BD8131 #31BD3B #316DBD
square
#BD31B3 #BD8131 #31BD3B #316DBD
split-complementary
#BD31B3 #6DBD31 #31BD81
monochromatic
#5C1857 #8C2485 #BD31B3 #D458CB #E088DA

Accessibility & contrast

On white

4.94
#BD31B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#BD31B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31B3
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31B3#FFFFFF#000000##FFFFFF
##BD31B31.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2464B7
Deuteranopia (green-blind)
#5D77B0
Tritanopia (blue-blind)
#C54270
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #bd31b3;
/* rgb */ color: rgb(189, 49, 179);
/* oklch */ color: oklch(57.5% 0.222 331.2);
Tailwind
colors: {
  custom: {
    50: '#d578ca',
    500: '#bd31b3',
    950: '#000000',
  },
}
SCSS
$custom: #bd31b3;
$custom-light: #d578ca;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31b3",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 304.286,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57536,
    "c": 0.22241,
    "h": 331.2
  },
  "luminance": 0.1627
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BD31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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