#B31EB3#B31EB3

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

Color values

HEX#B31EB3
RGBrgb(179, 30, 179)
HSLhsl(300, 71%, 41%)
HSVhsv(300, 83%, 70%)
CMYKcmyk(0%, 83.2%, 0%, 29.8%)
CIE-LABlab(43.90, 71.27, -44.44)
CIE-LCHlch(43.90, 83.99, 328.06°)
OKLaboklab(54.77% 0.1991 -0.1234)
OKLCHoklch(54.77% 0.234 328.2)
XYZxyz(27.1911, 13.7690, 43.8646)
Luminance0.1377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EB3 #1EB31E
analogous
#681EB3 #B31EB3 #B31E68
triadic
#B31EB3 #B3B31E #1EB3B3
tetradic
#B31EB3 #B3681E #1EB31E #1E68B3
square
#B31EB3 #B3681E #1EB31E #1E68B3
split-complementary
#B31EB3 #68B31E #1EB368
monochromatic
#4A0C4A #7F157F #B31EB3 #DD32DD #E566E5

Accessibility & contrast

On white

5.59
#B31EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31EB3
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31EB3#FFFFFF#000000##FFFFFF
##B31EB31.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB7
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#B93B6B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b31eb3;
/* rgb */ color: rgb(179, 30, 179);
/* oklch */ color: oklch(54.8% 0.234 328.2);
Tailwind
colors: {
  custom: {
    50: '#ce70ca',
    500: '#b31eb3',
    950: '#000000',
  },
}
SCSS
$custom: #b31eb3;
$custom-light: #ce70ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b31eb3",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 300,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54772,
    "c": 0.23419,
    "h": 328.2
  },
  "luminance": 0.13767
}

Semantic roles & 50–950 ramp

primary
#B31EB3
secondary
#62CB62
accent
#EE3A3A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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