#BD31A6#BD31A6

#BD31A6 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.9% C 0.213 H 335.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BD31A6
RGBrgb(189, 49, 166)
HSLhsl(310, 59%, 47%)
HSVhsv(310, 74%, 74%)
CMYKcmyk(0%, 74.1%, 12.2%, 25.9%)
CIE-LABlab(46.67, 66.34, -32.24)
CIE-LCHlch(46.67, 73.76, 334.08°)
OKLaboklab(56.85% 0.1942 -0.088)
OKLCHoklch(56.85% 0.213 335.6)
XYZxyz(28.9679, 15.7712, 37.5875)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31A6 #31BD48
analogous
#8E31BD #BD31A6 #BD3160
triadic
#BD31A6 #A6BD31 #31A6BD
tetradic
#BD31A6 #BD8E31 #31BD48 #3160BD
square
#BD31A6 #BD8E31 #31BD48 #3160BD
split-complementary
#BD31A6 #60BD31 #31BD8E
monochromatic
#5C1851 #8C247B #BD31A6 #D458BF #E088D2

Accessibility & contrast

On white

5.06
#BD31A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BD31A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31A6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31A6#FFFFFF#000000##FFFFFF
##BD31A61.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3261A9
Deuteranopia (green-blind)
#6476A3
Tritanopia (blue-blind)
#C73C68
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bd31a6;
/* rgb */ color: rgb(189, 49, 166);
/* oklch */ color: oklch(56.9% 0.213 335.6);
Tailwind
colors: {
  custom: {
    50: '#d577c1',
    500: '#bd31a6',
    950: '#000000',
  },
}
SCSS
$custom: #bd31a6;
$custom-light: #d577c1;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31a6",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 309.857,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56851,
    "c": 0.21317,
    "h": 335.6
  },
  "luminance": 0.15769
}

Semantic roles & 50–950 ramp

primary
#BD31A6
secondary
#80CA8C
accent
#E25F46
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BD31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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