#BD31C5#BD31C5

#BD31C5 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.6% C 0.236 H 325.7°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#BD31C5
RGBrgb(189, 49, 197)
HSLhsl(297, 60%, 48%)
HSVhsv(297, 75%, 77%)
CMYKcmyk(4.1%, 75.1%, 0%, 22.7%)
CIE-LABlab(48.32, 71.17, -47.81)
CIE-LCHlch(48.32, 85.74, 326.11°)
OKLaboklab(58.56% 0.1947 -0.1331)
OKLCHoklch(58.56% 0.236 325.7)
XYZxyz(32.1619, 17.0488, 54.4093)
Luminance0.1705 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31C5 #39C531
analogous
#7331C5 #BD31C5 #C53183
triadic
#BD31C5 #C5BD31 #31C5BD
tetradic
#BD31C5 #C57331 #39C531 #3183C5
square
#BD31C5 #C57331 #39C531 #3183C5
split-complementary
#BD31C5 #83C531 #31C573
monochromatic
#5F1963 #8E2594 #BD31C5 #D05DD7 #DE8EE3

Accessibility & contrast

On white

4.76
#BD31C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#BD31C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31C5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31C5#FFFFFF#000000##FFFFFF
##BD31C51.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#5379C1
Tritanopia (blue-blind)
#C24B7A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bd31c5;
/* rgb */ color: rgb(189, 49, 197);
/* oklch */ color: oklch(58.6% 0.236 325.7);
Tailwind
colors: {
  custom: {
    50: '#d578d7',
    500: '#bd31c5',
    950: '#000000',
  },
}
SCSS
$custom: #bd31c5;
$custom-light: #d578d7;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31c5",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 296.757,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.58564,
    "c": 0.23586,
    "h": 325.7
  },
  "luminance": 0.17047
}

Semantic roles & 50–950 ramp

primary
#BD31C5
secondary
#89CD85
accent
#E3444D
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BD31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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