#B31CA0#B31CA0

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

Color values

HEX#B31CA0
RGBrgb(179, 28, 160)
HSLhsl(308, 73%, 41%)
HSVhsv(308, 84%, 70%)
CMYKcmyk(0%, 84.4%, 10.6%, 29.8%)
CIE-LABlab(42.69, 68.86, -35.04)
CIE-LCHlch(42.69, 77.26, 333.03°)
OKLaboklab(53.58% 0.2006 -0.0961)
OKLCHoklch(53.58% 0.222 334.4)
XYZxyz(25.3511, 12.9546, 34.4162)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA0 #1CB32F
analogous
#7B1CB3 #B31CA0 #B31C54
triadic
#B31CA0 #A0B31C #1CA0B3
tetradic
#B31CA0 #B37B1C #1CB32F #1C54B3
square
#B31CA0 #B37B1C #1CB32F #1C54B3
split-complementary
#B31CA0 #54B31C #1CB37B
monochromatic
#490B41 #7E1471 #B31CA0 #DE2EC8 #E763D6

Accessibility & contrast

On white

5.85
#B31CA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B31CA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CA0
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CA0#FFFFFF#000000##FFFFFF
##B31CA01.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1857A3
Deuteranopia (green-blind)
#576C9D
Tritanopia (blue-blind)
#BC2E60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31ca0;
/* rgb */ color: rgb(179, 28, 160);
/* oklch */ color: oklch(53.6% 0.222 334.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ebc',
    500: '#b31ca0',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca0;
$custom-light: #ce6ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca0",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 307.55,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53575,
    "c": 0.22247,
    "h": 334.4
  },
  "luminance": 0.12952
}

Semantic roles & 50–950 ramp

primary
#B31CA0
secondary
#5FCB6D
accent
#F04F38
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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