#BD31C0#BD31C0

#BD31C0 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.3% C 0.232 H 327.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BD31C0
RGBrgb(189, 49, 192)
HSLhsl(299, 59%, 47%)
HSVhsv(299, 74%, 75%)
CMYKcmyk(1.6%, 74.5%, 0%, 24.7%)
CIE-LABlab(48.04, 70.35, -45.36)
CIE-LCHlch(48.04, 83.71, 327.19°)
OKLaboklab(58.27% 0.1949 -0.1259)
OKLCHoklch(58.27% 0.232 327.1)
XYZxyz(31.5985, 16.8235, 51.4419)
Luminance0.1682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31C0 #34C031
analogous
#7531C0 #BD31C0 #C0317C
triadic
#BD31C0 #C0BD31 #31C0BD
tetradic
#BD31C0 #C07531 #34C031 #317CC0
square
#BD31C0 #C07531 #34C031 #317CC0
split-complementary
#BD31C0 #7CC031 #31C075
monochromatic
#5D185E #8D258F #BD31C0 #D259D5 #DF8AE1

Accessibility & contrast

On white

4.81
#BD31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BD31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31C0
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31C0#FFFFFF#000000##FFFFFF
##BD31C01.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0667C4
Deuteranopia (green-blind)
#5678BD
Tritanopia (blue-blind)
#C24977
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #bd31c0;
/* rgb */ color: rgb(189, 49, 192);
/* oklch */ color: oklch(58.3% 0.232 327.1);
Tailwind
colors: {
  custom: {
    50: '#d578d3',
    500: '#bd31c0',
    950: '#000000',
  },
}
SCSS
$custom: #bd31c0;
$custom-light: #d578d3;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31c0",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 298.741,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5827,
    "c": 0.23206,
    "h": 327.1
  },
  "luminance": 0.16821
}

Semantic roles & 50–950 ramp

primary
#BD31C0
secondary
#83CB82
accent
#E34549
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BD31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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