#B31DB4#B31DB4

#B31DB4 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.8% C 0.236 H 327.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#B31DB4
RGBrgb(179, 29, 180)
HSLhsl(300, 72%, 41%)
HSVhsv(300, 84%, 71%)
CMYKcmyk(0.6%, 83.9%, 0%, 29.4%)
CIE-LABlab(43.89, 71.63, -45.05)
CIE-LCHlch(43.89, 84.62, 327.84°)
OKLaboklab(54.78% 0.1996 -0.1252)
OKLCHoklch(54.78% 0.236 327.9)
XYZxyz(27.2676, 13.7598, 44.3909)
Luminance0.1376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31DB4 #1EB41D
analogous
#671DB4 #B31DB4 #B41D69
triadic
#B31DB4 #B4B31D #1DB4B3
tetradic
#B31DB4 #B4671D #1EB41D #1D69B4
square
#B31DB4 #B4671D #1EB41D #1D69B4
split-complementary
#B31DB4 #69B41D #1DB467
monochromatic
#4A0C4B #7F157F #B31DB4 #DD30DE #E565E6

Accessibility & contrast

On white

5.60
#B31DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#B31DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31DB4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31DB4#FFFFFF#000000##FFFFFF
##B31DB41.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#4C6EB1
Tritanopia (blue-blind)
#B93B6C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b31db4;
/* rgb */ color: rgb(179, 29, 180);
/* oklch */ color: oklch(54.8% 0.236 327.9);
Tailwind
colors: {
  custom: {
    50: '#ce70cb',
    500: '#b31db4',
    950: '#000000',
  },
}
SCSS
$custom: #b31db4;
$custom-light: #ce70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b31db4",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 180
  },
  "hsl": {
    "h": 299.603,
    "s": 72.249,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54781,
    "c": 0.23558,
    "h": 327.9
  },
  "luminance": 0.13758
}

Semantic roles & 50–950 ramp

primary
#B31DB4
secondary
#62CB61
accent
#EF393A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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