#BD31A4#BD31A4

#BD31A4 is a mid, highly saturated pink. Relative luminance 0.157; OKLCH L 56.8% C 0.212 H 336.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BD31A4
RGBrgb(189, 49, 164)
HSLhsl(311, 59%, 47%)
HSVhsv(311, 74%, 74%)
CMYKcmyk(0%, 74.1%, 13.2%, 25.9%)
CIE-LABlab(46.58, 66.05, -31.21)
CIE-LCHlch(46.58, 73.05, 334.71°)
OKLaboklab(56.75% 0.194 -0.085)
OKLCHoklch(56.75% 0.212 336.3)
XYZxyz(28.7859, 15.6984, 36.6288)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31A4 #31BD4A
analogous
#9031BD #BD31A4 #BD315E
triadic
#BD31A4 #A4BD31 #31A4BD
tetradic
#BD31A4 #BD9031 #31BD4A #315EBD
square
#BD31A4 #BD9031 #31BD4A #315EBD
split-complementary
#BD31A4 #5EBD31 #31BD90
monochromatic
#5C1850 #8C247A #BD31A4 #D458BD #E088D0

Accessibility & contrast

On white

5.07
#BD31A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BD31A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31A4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31A4#FFFFFF#000000##FFFFFF
##BD31A41.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A7
Deuteranopia (green-blind)
#6476A1
Tritanopia (blue-blind)
#C73B67
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #bd31a4;
/* rgb */ color: rgb(189, 49, 164);
/* oklch */ color: oklch(56.8% 0.212 336.3);
Tailwind
colors: {
  custom: {
    50: '#d577bf',
    500: '#bd31a4',
    950: '#000000',
  },
}
SCSS
$custom: #bd31a4;
$custom-light: #d577bf;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31a4",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 310.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5675,
    "c": 0.21179,
    "h": 336.3
  },
  "luminance": 0.15696
}

Semantic roles & 50–950 ramp

primary
#BD31A4
secondary
#80CA8D
accent
#E26246
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BD31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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