#B31EA1#B31EA1

#B31EA1 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.222 H 334.1°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#B31EA1
RGBrgb(179, 30, 161)
HSLhsl(307, 71%, 41%)
HSVhsv(307, 83%, 70%)
CMYKcmyk(0%, 83.2%, 10.1%, 29.8%)
CIE-LABlab(42.90, 68.57, -35.32)
CIE-LCHlch(42.90, 77.13, 332.75°)
OKLaboklab(53.74% 0.1994 -0.097)
OKLCHoklch(53.74% 0.222 334.1)
XYZxyz(25.4880, 13.0878, 34.8951)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EA1 #1EB330
analogous
#7A1EB3 #B31EA1 #B31E56
triadic
#B31EA1 #A1B31E #1EA1B3
tetradic
#B31EA1 #B37A1E #1EB330 #1E56B3
square
#B31EA1 #B37A1E #1EB330 #1E56B3
split-complementary
#B31EA1 #56B31E #1EB37A
monochromatic
#4A0C43 #7F1572 #B31EA1 #DD32C8 #E566D6

Accessibility & contrast

On white

5.81
#B31EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B31EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31EA1
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31EA1#FFFFFF#000000##FFFFFF
##B31EA11.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A4
Deuteranopia (green-blind)
#576D9E
Tritanopia (blue-blind)
#BC3061
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31ea1;
/* rgb */ color: rgb(179, 30, 161);
/* oklch */ color: oklch(53.7% 0.222 334.1);
Tailwind
colors: {
  custom: {
    50: '#ce6fbd',
    500: '#b31ea1',
    950: '#000000',
  },
}
SCSS
$custom: #b31ea1;
$custom-light: #ce6fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ea1",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 307.248,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53735,
    "c": 0.22172,
    "h": 334.1
  },
  "luminance": 0.13085
}

Semantic roles & 50–950 ramp

primary
#B31EA1
secondary
#62CB6F
accent
#EE503A
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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