#B31DB1#B31DB1

#B31DB1 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.6% C 0.233 H 328.8°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#B31DB1
RGBrgb(179, 29, 177)
HSLhsl(301, 72%, 41%)
HSVhsv(301, 84%, 70%)
CMYKcmyk(0%, 83.8%, 1.1%, 29.8%)
CIE-LABlab(43.71, 71.17, -43.56)
CIE-LCHlch(43.71, 83.44, 328.53°)
OKLaboklab(54.6% 0.1998 -0.1208)
OKLCHoklch(54.6% 0.233 328.8)
XYZxyz(26.9653, 13.6389, 42.7988)
Luminance0.1364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31DB1 #1DB31F
analogous
#6A1DB3 #B31DB1 #B31D66
triadic
#B31DB1 #B1B31D #1DB1B3
tetradic
#B31DB1 #B36A1D #1DB31F #1D66B3
square
#B31DB1 #B36A1D #1DB31F #1D66B3
split-complementary
#B31DB1 #66B31D #1DB36A
monochromatic
#4A0C49 #7E147D #B31DB1 #DD30DB #E664E4

Accessibility & contrast

On white

5.63
#B31DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#B31DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31DB1
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31DB1#FFFFFF#000000##FFFFFF
##B31DB11.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#B9396A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31db1;
/* rgb */ color: rgb(179, 29, 177);
/* oklch */ color: oklch(54.6% 0.233 328.8);
Tailwind
colors: {
  custom: {
    50: '#ce6fc9',
    500: '#b31db1',
    950: '#000000',
  },
}
SCSS
$custom: #b31db1;
$custom-light: #ce6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#b31db1",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 177
  },
  "hsl": {
    "h": 300.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.546,
    "c": 0.23346,
    "h": 328.8
  },
  "luminance": 0.13637
}

Semantic roles & 50–950 ramp

primary
#B31DB1
secondary
#61CB62
accent
#EF3B39
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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