#B31EB4#B31EB4

#B31EB4 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.8% C 0.235 H 327.9°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#B31EB4
RGBrgb(179, 30, 180)
HSLhsl(300, 71%, 41%)
HSVhsv(300, 83%, 71%)
CMYKcmyk(0.6%, 83.3%, 0%, 29.4%)
CIE-LABlab(43.96, 71.42, -44.93)
CIE-LCHlch(43.96, 84.38, 327.83°)
OKLaboklab(54.83% 0.199 -0.1248)
OKLCHoklch(54.83% 0.235 327.9)
XYZxyz(27.2926, 13.8096, 44.3992)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EB4 #1FB41E
analogous
#681EB4 #B31EB4 #B41E6A
triadic
#B31EB4 #B4B31E #1EB4B3
tetradic
#B31EB4 #B4681E #1FB41E #1E6AB4
square
#B31EB4 #B4681E #1FB41E #1E6AB4
split-complementary
#B31EB4 #6AB41E #1EB468
monochromatic
#4B0D4B #7F1580 #B31EB4 #DC32DD #E567E6

Accessibility & contrast

On white

5.58
#B31EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B31EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31EB4
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31EB4#FFFFFF#000000##FFFFFF
##B31EB41.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#4C6EB1
Tritanopia (blue-blind)
#B93B6C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b31eb4;
/* rgb */ color: rgb(179, 30, 180);
/* oklch */ color: oklch(54.8% 0.235 327.9);
Tailwind
colors: {
  custom: {
    50: '#ce70cb',
    500: '#b31eb4',
    950: '#000000',
  },
}
SCSS
$custom: #b31eb4;
$custom-light: #ce70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b31eb4",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 299.6,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54832,
    "c": 0.23489,
    "h": 327.9
  },
  "luminance": 0.13808
}

Semantic roles & 50–950 ramp

primary
#B31EB4
secondary
#64CB63
accent
#EE3A3B
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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