#B31EB2#B31EB2

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

Color values

HEX#B31EB2
RGBrgb(179, 30, 178)
HSLhsl(300, 71%, 41%)
HSVhsv(300, 83%, 70%)
CMYKcmyk(0%, 83.2%, 0.6%, 29.8%)
CIE-LABlab(43.84, 71.11, -43.94)
CIE-LCHlch(43.84, 83.59, 328.29°)
OKLaboklab(54.71% 0.1991 -0.1219)
OKLCHoklch(54.71% 0.233 328.5)
XYZxyz(27.0903, 13.7287, 43.3339)
Luminance0.1373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EB2 #1EB31F
analogous
#691EB3 #B31EB2 #B31E67
triadic
#B31EB2 #B2B31E #1EB2B3
tetradic
#B31EB2 #B3691E #1EB31F #1E67B3
square
#B31EB2 #B3691E #1EB31F #1E67B3
split-complementary
#B31EB2 #67B31E #1EB369
monochromatic
#4A0C4A #7F157E #B31EB2 #DD32DB #E566E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31EB2#FFFFFF#000000##FFFFFF
##B31EB21.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31eb2;
/* rgb */ color: rgb(179, 30, 178);
/* oklch */ color: oklch(54.7% 0.233 328.5);
Tailwind
colors: {
  custom: {
    50: '#ce70c9',
    500: '#b31eb2',
    950: '#000000',
  },
}
SCSS
$custom: #b31eb2;
$custom-light: #ce70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b31eb2",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 178
  },
  "hsl": {
    "h": 300.403,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54712,
    "c": 0.23347,
    "h": 328.5
  },
  "luminance": 0.13727
}

Semantic roles & 50–950 ramp

primary
#B31EB2
secondary
#62CB63
accent
#EE3B3A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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