#BD31B8#BD31B8

#BD31B8 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.8% C 0.226 H 329.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BD31B8
RGBrgb(189, 49, 184)
HSLhsl(302, 59%, 47%)
HSVhsv(302, 74%, 74%)
CMYKcmyk(0%, 74.1%, 2.6%, 25.9%)
CIE-LABlab(47.60, 69.07, -41.39)
CIE-LCHlch(47.60, 80.53, 329.07°)
OKLaboklab(57.81% 0.195 -0.1144)
OKLCHoklch(57.81% 0.226 329.6)
XYZxyz(30.7361, 16.4785, 46.8999)
Luminance0.1648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31B8 #31BD36
analogous
#7C31BD #BD31B8 #BD3172
triadic
#BD31B8 #B8BD31 #31B8BD
tetradic
#BD31B8 #BD7C31 #31BD36 #3172BD
square
#BD31B8 #BD7C31 #31BD36 #3172BD
split-complementary
#BD31B8 #72BD31 #31BD7C
monochromatic
#5C1859 #8C2489 #BD31B8 #D458CF #E088DD

Accessibility & contrast

On white

4.89
#BD31B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#BD31B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31B8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31B8#FFFFFF#000000##FFFFFF
##BD31B81.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C65BC
Deuteranopia (green-blind)
#5B77B5
Tritanopia (blue-blind)
#C44572
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #bd31b8;
/* rgb */ color: rgb(189, 49, 184);
/* oklch */ color: oklch(57.8% 0.226 329.6);
Tailwind
colors: {
  custom: {
    50: '#d578ce',
    500: '#bd31b8',
    950: '#000000',
  },
}
SCSS
$custom: #bd31b8;
$custom-light: #d578ce;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31b8",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 302.143,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57813,
    "c": 0.22608,
    "h": 329.6
  },
  "luminance": 0.16476
}

Semantic roles & 50–950 ramp

primary
#BD31B8
secondary
#80CA82
accent
#E24B46
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BD31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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