#B31CA1#B31CA1

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

Color values

HEX#B31CA1
RGBrgb(179, 28, 161)
HSLhsl(307, 73%, 41%)
HSVhsv(307, 84%, 70%)
CMYKcmyk(0%, 84.4%, 10.1%, 29.8%)
CIE-LABlab(42.75, 69.00, -35.56)
CIE-LCHlch(42.75, 77.62, 332.74°)
OKLaboklab(53.63% 0.2007 -0.0976)
OKLCHoklch(53.63% 0.223 334.1)
XYZxyz(25.4390, 12.9898, 34.8788)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA1 #1CB32E
analogous
#791CB3 #B31CA1 #B31C56
triadic
#B31CA1 #A1B31C #1CA1B3
tetradic
#B31CA1 #B3791C #1CB32E #1C56B3
square
#B31CA1 #B3791C #1CB32E #1C56B3
split-complementary
#B31CA1 #56B31C #1CB379
monochromatic
#490B42 #7E1471 #B31CA1 #DE2EC9 #E763D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31CA1#FFFFFF#000000##FFFFFF
##B31CA11.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)
#1657A4
Deuteranopia (green-blind)
#576C9E
Tritanopia (blue-blind)
#BC2F61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31ca1;
/* rgb */ color: rgb(179, 28, 161);
/* oklch */ color: oklch(53.6% 0.223 334.1);
Tailwind
colors: {
  custom: {
    50: '#ce6ebd',
    500: '#b31ca1',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca1;
$custom-light: #ce6ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca1",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 307.152,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.5363,
    "c": 0.22315,
    "h": 334.1
  },
  "luminance": 0.12987
}

Semantic roles & 50–950 ramp

primary
#B31CA1
secondary
#5FCB6C
accent
#F04E38
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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