#B31CA2#B31CA2

#B31CA2 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.224 H 333.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#B31CA2
RGBrgb(179, 28, 162)
HSLhsl(307, 73%, 41%)
HSVhsv(307, 84%, 70%)
CMYKcmyk(0%, 84.4%, 9.5%, 29.8%)
CIE-LABlab(42.80, 69.14, -36.07)
CIE-LCHlch(42.80, 77.99, 332.45°)
OKLaboklab(53.69% 0.2007 -0.0991)
OKLCHoklch(53.69% 0.224 333.7)
XYZxyz(25.5275, 13.0252, 35.3451)
Luminance0.1302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA2 #1CB32D
analogous
#781CB3 #B31CA2 #B31C56
triadic
#B31CA2 #A2B31C #1CA2B3
tetradic
#B31CA2 #B3781C #1CB32D #1C56B3
square
#B31CA2 #B3781C #1CB32D #1C56B3
split-complementary
#B31CA2 #56B31C #1CB378
monochromatic
#490B42 #7E1472 #B31CA2 #DE2ECA #E763D8

Accessibility & contrast

On white

5.83
#B31CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31CA2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CA2#FFFFFF#000000##FFFFFF
##B31CA21.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1458A5
Deuteranopia (green-blind)
#566C9F
Tritanopia (blue-blind)
#BC2F61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31ca2;
/* rgb */ color: rgb(179, 28, 162);
/* oklch */ color: oklch(53.7% 0.224 333.7);
Tailwind
colors: {
  custom: {
    50: '#ce6ebe',
    500: '#b31ca2',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca2;
$custom-light: #ce6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca2",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 162
  },
  "hsl": {
    "h": 306.755,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53685,
    "c": 0.22381,
    "h": 333.7
  },
  "luminance": 0.13023
}

Semantic roles & 50–950 ramp

primary
#B31CA2
secondary
#5FCB6C
accent
#F04D38
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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