#B31CA5#B31CA5

#B31CA5 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.9% C 0.226 H 332.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B31CA5
RGBrgb(179, 28, 165)
HSLhsl(306, 73%, 41%)
HSVhsv(306, 84%, 70%)
CMYKcmyk(0%, 84.4%, 7.8%, 29.8%)
CIE-LABlab(42.96, 69.58, -37.61)
CIE-LCHlch(42.96, 79.09, 331.61°)
OKLaboklab(53.85% 0.2007 -0.1035)
OKLCHoklch(53.85% 0.226 332.7)
XYZxyz(25.7974, 13.1331, 36.7663)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA5 #1CB32A
analogous
#751CB3 #B31CA5 #B31C59
triadic
#B31CA5 #A5B31C #1CA5B3
tetradic
#B31CA5 #B3751C #1CB32A #1C59B3
square
#B31CA5 #B3751C #1CB32A #1C59B3
split-complementary
#B31CA5 #59B31C #1CB375
monochromatic
#490B43 #7E1474 #B31CA5 #DE2ECE #E763DA

Accessibility & contrast

On white

5.79
#B31CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B31CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CA5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CA5#FFFFFF#000000##FFFFFF
##B31CA51.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C58A8
Deuteranopia (green-blind)
#556DA2
Tritanopia (blue-blind)
#BB3163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31ca5;
/* rgb */ color: rgb(179, 28, 165);
/* oklch */ color: oklch(53.9% 0.226 332.7);
Tailwind
colors: {
  custom: {
    50: '#ce6fc0',
    500: '#b31ca5',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca5;
$custom-light: #ce6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca5",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 165
  },
  "hsl": {
    "h": 305.563,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53852,
    "c": 0.22583,
    "h": 332.7
  },
  "luminance": 0.13131
}

Semantic roles & 50–950 ramp

primary
#B31CA5
secondary
#5FCB69
accent
#F04938
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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