#B31DB3#B31DB3

#B31DB3 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.7% C 0.235 H 328.2°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#B31DB3
RGBrgb(179, 29, 179)
HSLhsl(300, 72%, 41%)
HSVhsv(300, 84%, 70%)
CMYKcmyk(0%, 83.8%, 0%, 29.8%)
CIE-LABlab(43.83, 71.48, -44.55)
CIE-LCHlch(43.83, 84.23, 328.07°)
OKLaboklab(54.72% 0.1996 -0.1237)
OKLCHoklch(54.72% 0.235 328.2)
XYZxyz(27.1661, 13.7192, 43.8563)
Luminance0.1372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31DB3 #1DB31D
analogous
#681DB3 #B31DB3 #B31D68
triadic
#B31DB3 #B3B31D #1DB3B3
tetradic
#B31DB3 #B3681D #1DB31D #1D68B3
square
#B31DB3 #B3681D #1DB31D #1D68B3
split-complementary
#B31DB3 #68B31D #1DB368
monochromatic
#4A0C4A #7E147E #B31DB3 #DD30DD #E664E6

Accessibility & contrast

On white

5.61
#B31DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#B31DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31DB3
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31DB3#FFFFFF#000000##FFFFFF
##B31DB31.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB7
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#B93A6B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b31db3;
/* rgb */ color: rgb(179, 29, 179);
/* oklch */ color: oklch(54.7% 0.235 328.2);
Tailwind
colors: {
  custom: {
    50: '#ce6fca',
    500: '#b31db3',
    950: '#000000',
  },
}
SCSS
$custom: #b31db3;
$custom-light: #ce6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#b31db3",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 300,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54721,
    "c": 0.23487,
    "h": 328.2
  },
  "luminance": 0.13717
}

Semantic roles & 50–950 ramp

primary
#B31DB3
secondary
#61CB61
accent
#EF3939
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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