#B31DB0#B31DB0

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

Color values

HEX#B31DB0
RGBrgb(179, 29, 176)
HSLhsl(301, 72%, 41%)
HSVhsv(301, 84%, 70%)
CMYKcmyk(0%, 83.8%, 1.7%, 29.8%)
CIE-LABlab(43.65, 71.02, -43.06)
CIE-LCHlch(43.65, 83.05, 328.77°)
OKLaboklab(54.54% 0.1998 -0.1194)
OKLCHoklch(54.54% 0.233 329.1)
XYZxyz(26.8660, 13.5992, 42.2758)
Luminance0.1360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31DB0 #1DB320
analogous
#6B1DB3 #B31DB0 #B31D65
triadic
#B31DB0 #B0B31D #1DB0B3
tetradic
#B31DB0 #B36B1D #1DB320 #1D65B3
square
#B31DB0 #B36B1D #1DB320 #1D65B3
split-complementary
#B31DB0 #65B31D #1DB36B
monochromatic
#4A0C48 #7E147C #B31DB0 #DD30DA #E664E3

Accessibility & contrast

On white

5.65
#B31DB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B31DB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31DB0
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31DB0#FFFFFF#000000##FFFFFF
##B31DB01.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#4F6EAD
Tritanopia (blue-blind)
#B93869
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31db0;
/* rgb */ color: rgb(179, 29, 176);
/* oklch */ color: oklch(54.5% 0.233 329.1);
Tailwind
colors: {
  custom: {
    50: '#ce6fc8',
    500: '#b31db0',
    950: '#000000',
  },
}
SCSS
$custom: #b31db0;
$custom-light: #ce6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#b31db0",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 176
  },
  "hsl": {
    "h": 301.2,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54541,
    "c": 0.23275,
    "h": 329.1
  },
  "luminance": 0.13597
}

Semantic roles & 50–950 ramp

primary
#B31DB0
secondary
#61CB63
accent
#EF3D39
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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