#B31EA7#B31EA7

#B31EA7 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.1% C 0.226 H 332.0°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B31EA7
RGBrgb(179, 30, 167)
HSLhsl(305, 71%, 41%)
HSVhsv(305, 83%, 70%)
CMYKcmyk(0%, 83.2%, 6.7%, 29.8%)
CIE-LABlab(43.22, 69.45, -38.40)
CIE-LCHlch(43.22, 79.36, 331.06°)
OKLaboklab(54.07% 0.1994 -0.1058)
OKLCHoklch(54.07% 0.226 332)
XYZxyz(26.0298, 13.3045, 37.7488)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31EA7 #1EB32A
analogous
#741EB3 #B31EA7 #B31E5C
triadic
#B31EA7 #A7B31E #1EA7B3
tetradic
#B31EA7 #B3741E #1EB32A #1E5CB3
square
#B31EA7 #B3741E #1EB32A #1E5CB3
split-complementary
#B31EA7 #5CB31E #1EB374
monochromatic
#4A0C45 #7F1576 #B31EA7 #DD32CF #E566DB

Accessibility & contrast

On white

5.74
#B31EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B31EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31EA7
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31EA7#FFFFFF#000000##FFFFFF
##B31EA71.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A59AA
Deuteranopia (green-blind)
#546DA4
Tritanopia (blue-blind)
#BB3464
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31ea7;
/* rgb */ color: rgb(179, 30, 167);
/* oklch */ color: oklch(54.1% 0.226 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce6fc1',
    500: '#b31ea7',
    950: '#000000',
  },
}
SCSS
$custom: #b31ea7;
$custom-light: #ce6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ea7",
  "rgb": {
    "r": 179,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 304.832,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54069,
    "c": 0.2258,
    "h": 332
  },
  "luminance": 0.13302
}

Semantic roles & 50–950 ramp

primary
#B31EA7
secondary
#62CB6B
accent
#EE483A
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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