#BD31A9#BD31A9

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

Color values

HEX#BD31A9
RGBrgb(189, 49, 169)
HSLhsl(309, 59%, 47%)
HSVhsv(309, 74%, 74%)
CMYKcmyk(0%, 74.1%, 10.6%, 25.9%)
CIE-LABlab(46.82, 66.78, -33.79)
CIE-LCHlch(46.82, 74.84, 333.16°)
OKLaboklab(57.01% 0.1944 -0.0924)
OKLCHoklch(57.01% 0.215 334.6)
XYZxyz(29.2463, 15.8826, 39.0538)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BD31A9 #31BD45
analogous
#8B31BD #BD31A9 #BD3163
triadic
#BD31A9 #A9BD31 #31A9BD
tetradic
#BD31A9 #BD8B31 #31BD45 #3163BD
square
#BD31A9 #BD8B31 #31BD45 #3163BD
split-complementary
#BD31A9 #63BD31 #31BD8B
monochromatic
#5C1852 #8C247E #BD31A9 #D458C2 #E088D4

Accessibility & contrast

On white

5.03
#BD31A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BD31A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BD31A9
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BD31A9#FFFFFF#000000##FFFFFF
##BD31A91.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F62AC
Deuteranopia (green-blind)
#6276A6
Tritanopia (blue-blind)
#C63D6A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #bd31a9;
/* rgb */ color: rgb(189, 49, 169);
/* oklch */ color: oklch(57.0% 0.215 334.6);
Tailwind
colors: {
  custom: {
    50: '#d577c3',
    500: '#bd31a9',
    950: '#000000',
  },
}
SCSS
$custom: #bd31a9;
$custom-light: #d577c3;
$custom-dark: #000000;
JSON
{
  "hex": "#bd31a9",
  "rgb": {
    "r": 189,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 308.571,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.57005,
    "c": 0.21525,
    "h": 334.6
  },
  "luminance": 0.1588
}

Semantic roles & 50–950 ramp

primary
#BD31A9
secondary
#80CA8A
accent
#E25C46
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BD31A9

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

Preview Lab → · Contrast checker → · Palette generator →

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