#B31CAB#B31CAB

#B31CAB is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.2% C 0.230 H 330.7°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#B31CAB
RGBrgb(179, 28, 171)
HSLhsl(303, 73%, 41%)
HSVhsv(303, 84%, 70%)
CMYKcmyk(0%, 84.4%, 4.5%, 29.8%)
CIE-LABlab(43.30, 70.47, -40.66)
CIE-LCHlch(43.30, 81.35, 330.01°)
OKLaboklab(54.2% 0.2006 -0.1124)
OKLCHoklch(54.2% 0.23 330.7)
XYZxyz(26.3563, 13.3567, 39.7102)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CAB #1CB324
analogous
#6F1CB3 #B31CAB #B31C5F
triadic
#B31CAB #ABB31C #1CABB3
tetradic
#B31CAB #B36F1C #1CB324 #1C5FB3
square
#B31CAB #B36F1C #1CB324 #1C5FB3
split-complementary
#B31CAB #5FB31C #1CB36F
monochromatic
#490B46 #7E1478 #B31CAB #DE2ED5 #E763E0

Accessibility & contrast

On white

5.72
#B31CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B31CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CAB
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CAB#FFFFFF#000000##FFFFFF
##B31CAB1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#516DA8
Tritanopia (blue-blind)
#BA3566
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31cab;
/* rgb */ color: rgb(179, 28, 171);
/* oklch */ color: oklch(54.2% 0.230 330.7);
Tailwind
colors: {
  custom: {
    50: '#ce6fc4',
    500: '#b31cab',
    950: '#000000',
  },
}
SCSS
$custom: #b31cab;
$custom-light: #ce6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31cab",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 303.179,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54196,
    "c": 0.22994,
    "h": 330.7
  },
  "luminance": 0.13354
}

Semantic roles & 50–950 ramp

primary
#B31CAB
secondary
#5FCB65
accent
#F04238
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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