#B31E9E#B31E9E

#B31E9E is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.220 H 335.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#B31E9E
RGBrgb(179, 30, 158)
HSLhsl(308, 71%, 41%)
HSVhsv(308, 83%, 70%)
CMYKcmyk(0%, 83.2%, 11.7%, 29.8%)
CIE-LABlab(42.74, 68.14, -33.77)
CIE-LCHlch(42.74, 76.05, 333.64°)
OKLaboklab(53.57% 0.1993 -0.0925)
OKLCHoklch(53.57% 0.22 335.1)
XYZxyz(25.2266, 12.9832, 33.5186)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31E9E #1EB333
analogous
#7D1EB3 #B31E9E #B31E54
triadic
#B31E9E #9EB31E #1E9EB3
tetradic
#B31E9E #B37D1E #1EB333 #1E54B3
square
#B31E9E #B37D1E #1EB333 #1E54B3
split-complementary
#B31E9E #54B31E #1EB37D
monochromatic
#4A0C41 #7F1570 #B31E9E #DD32C4 #E566D3

Accessibility & contrast

On white

5.84
#B31E9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#B31E9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31E9E
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31E9E#FFFFFF#000000##FFFFFF
##B31E9E1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D57A1
Deuteranopia (green-blind)
#596C9B
Tritanopia (blue-blind)
#BC2E5F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31e9e;
/* rgb */ color: rgb(179, 30, 158);
/* oklch */ color: oklch(53.6% 0.220 335.1);
Tailwind
colors: {
  custom: {
    50: '#ce6fbb',
    500: '#b31e9e',
    950: '#000000',
  },
}
SCSS
$custom: #b31e9e;
$custom-light: #ce6fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#b31e9e",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 308.456,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53572,
    "c": 0.21971,
    "h": 335.1
  },
  "luminance": 0.12981
}

Semantic roles & 50–950 ramp

primary
#B31E9E
secondary
#62CB71
accent
#EE533A
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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