#B31DB2#B31DB2

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

Color values

HEX#B31DB2
RGBrgb(179, 29, 178)
HSLhsl(300, 72%, 41%)
HSVhsv(300, 84%, 70%)
CMYKcmyk(0%, 83.8%, 0.6%, 29.8%)
CIE-LABlab(43.77, 71.32, -44.05)
CIE-LCHlch(43.77, 83.83, 328.30°)
OKLaboklab(54.66% 0.1997 -0.1223)
OKLCHoklch(54.66% 0.234 328.5)
XYZxyz(27.0654, 13.6789, 43.3256)
Luminance0.1368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31DB2 #1DB31E
analogous
#691DB3 #B31DB2 #B31D67
triadic
#B31DB2 #B2B31D #1DB2B3
tetradic
#B31DB2 #B3691D #1DB31E #1D67B3
square
#B31DB2 #B3691D #1DB31E #1D67B3
split-complementary
#B31DB2 #67B31D #1DB369
monochromatic
#4A0C49 #7E147E #B31DB2 #DD30DC #E664E5

Accessibility & contrast

On white

5.62
#B31DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31DB2
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31DB2#FFFFFF#000000##FFFFFF
##B31DB21.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#4D6EAF
Tritanopia (blue-blind)
#B93A6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31db2;
/* rgb */ color: rgb(179, 29, 178);
/* oklch */ color: oklch(54.7% 0.234 328.5);
Tailwind
colors: {
  custom: {
    50: '#ce6fc9',
    500: '#b31db2',
    950: '#000000',
  },
}
SCSS
$custom: #b31db2;
$custom-light: #ce6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#b31db2",
  "rgb": {
    "r": 179,
    "g": 29,
    "b": 178
  },
  "hsl": {
    "h": 300.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.5466,
    "c": 0.23416,
    "h": 328.5
  },
  "luminance": 0.13677
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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