#BD31C4#BD31C4

#BD31C4 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.5% C 0.235 H 325.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BD31C4
RGBrgb(189, 49, 196)
HSLhsl(297, 60%, 48%)
HSVhsv(297, 75%, 77%)
CMYKcmyk(3.6%, 75%, 0%, 23.1%)
CIE-LABlab(48.26, 71.01, -47.32)
CIE-LCHlch(48.26, 85.33, 326.32°)
OKLaboklab(58.51% 0.1948 -0.1316)
OKLCHoklch(58.51% 0.235 325.9)
XYZxyz(32.0477, 17.0031, 53.8078)
Luminance0.1700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31C4 #38C431
analogous
#7331C4 #BD31C4 #C43181
triadic
#BD31C4 #C4BD31 #31C4BD
tetradic
#BD31C4 #C47331 #38C431 #3181C4
square
#BD31C4 #C47331 #38C431 #3181C4
split-complementary
#BD31C4 #81C431 #31C473
monochromatic
#5F1962 #8E2593 #BD31C4 #D05CD6 #DE8DE2

Accessibility & contrast

On white

4.77
#BD31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BD31C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31C4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31C4#FFFFFF#000000##FFFFFF
##BD31C41.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C8
Deuteranopia (green-blind)
#5378C0
Tritanopia (blue-blind)
#C24B79
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #bd31c4;
/* rgb */ color: rgb(189, 49, 196);
/* oklch */ color: oklch(58.5% 0.235 325.9);
Tailwind
colors: {
  custom: {
    50: '#d578d6',
    500: '#bd31c4',
    950: '#000000',
  },
}
SCSS
$custom: #bd31c4;
$custom-light: #d578d6;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31c4",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 297.143,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.58505,
    "c": 0.23509,
    "h": 325.9
  },
  "luminance": 0.17001
}

Semantic roles & 50–950 ramp

primary
#BD31C4
secondary
#87CD84
accent
#E3454C
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BD31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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