#B31EB1#B31EB1

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

Color values

HEX#B31EB1
RGBrgb(179, 30, 177)
HSLhsl(301, 71%, 41%)
HSVhsv(301, 83%, 70%)
CMYKcmyk(0%, 83.2%, 1.1%, 29.8%)
CIE-LABlab(43.78, 70.96, -43.44)
CIE-LCHlch(43.78, 83.20, 328.53°)
OKLaboklab(54.65% 0.1992 -0.1205)
OKLCHoklch(54.65% 0.233 328.8)
XYZxyz(26.9903, 13.6887, 42.8071)
Luminance0.1369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EB1 #1EB320
analogous
#6A1EB3 #B31EB1 #B31E66
triadic
#B31EB1 #B1B31E #1EB1B3
tetradic
#B31EB1 #B36A1E #1EB320 #1E66B3
square
#B31EB1 #B36A1E #1EB320 #1E66B3
split-complementary
#B31EB1 #66B31E #1EB36A
monochromatic
#4A0C49 #7F157D #B31EB1 #DD32DA #E566E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31EB1#FFFFFF#000000##FFFFFF
##B31EB11.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)
#005BB5
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#B93A6A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31eb1;
/* rgb */ color: rgb(179, 30, 177);
/* oklch */ color: oklch(54.7% 0.233 328.8);
Tailwind
colors: {
  custom: {
    50: '#ce70c9',
    500: '#b31eb1',
    950: '#000000',
  },
}
SCSS
$custom: #b31eb1;
$custom-light: #ce70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b31eb1",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 177
  },
  "hsl": {
    "h": 300.805,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54652,
    "c": 0.23277,
    "h": 328.8
  },
  "luminance": 0.13687
}

Semantic roles & 50–950 ramp

primary
#B31EB1
secondary
#62CB64
accent
#EE3C3A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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