#BD31A8#BD31A8

#BD31A8 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.215 H 334.9°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BD31A8
RGBrgb(189, 49, 168)
HSLhsl(309, 59%, 47%)
HSVhsv(309, 74%, 74%)
CMYKcmyk(0%, 74.1%, 11.1%, 25.9%)
CIE-LABlab(46.77, 66.63, -33.28)
CIE-LCHlch(46.77, 74.48, 333.46°)
OKLaboklab(56.95% 0.1943 -0.091)
OKLCHoklch(56.95% 0.215 334.9)
XYZxyz(29.1528, 15.8452, 38.5612)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31A8 #31BD46
analogous
#8C31BD #BD31A8 #BD3162
triadic
#BD31A8 #A8BD31 #31A8BD
tetradic
#BD31A8 #BD8C31 #31BD46 #3162BD
square
#BD31A8 #BD8C31 #31BD46 #3162BD
split-complementary
#BD31A8 #62BD31 #31BD8C
monochromatic
#5C1852 #8C247D #BD31A8 #D458C1 #E088D3

Accessibility & contrast

On white

5.04
#BD31A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BD31A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31A8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31A8#FFFFFF#000000##FFFFFF
##BD31A81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AB
Deuteranopia (green-blind)
#6376A5
Tritanopia (blue-blind)
#C63D69
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bd31a8;
/* rgb */ color: rgb(189, 49, 168);
/* oklch */ color: oklch(57.0% 0.215 334.9);
Tailwind
colors: {
  custom: {
    50: '#d577c2',
    500: '#bd31a8',
    950: '#000000',
  },
}
SCSS
$custom: #bd31a8;
$custom-light: #d577c2;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31a8",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 309,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56953,
    "c": 0.21456,
    "h": 334.9
  },
  "luminance": 0.15843
}

Semantic roles & 50–950 ramp

primary
#BD31A8
secondary
#80CA8B
accent
#E25D46
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BD31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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