#B31CA3#B31CA3

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

Color values

HEX#B31CA3
RGBrgb(179, 28, 163)
HSLhsl(306, 73%, 41%)
HSVhsv(306, 84%, 70%)
CMYKcmyk(0%, 84.4%, 8.9%, 29.8%)
CIE-LABlab(42.85, 69.29, -36.59)
CIE-LCHlch(42.85, 78.35, 332.16°)
OKLaboklab(53.74% 0.2007 -0.1006)
OKLCHoklch(53.74% 0.224 333.4)
XYZxyz(25.6167, 13.0609, 35.8151)
Luminance0.1306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA3 #1CB32C
analogous
#781CB3 #B31CA3 #B31C57
triadic
#B31CA3 #A3B31C #1CA3B3
tetradic
#B31CA3 #B3781C #1CB32C #1C57B3
square
#B31CA3 #B3781C #1CB32C #1C57B3
split-complementary
#B31CA3 #57B31C #1CB378
monochromatic
#490B43 #7E1473 #B31CA3 #DE2ECC #E763D9

Accessibility & contrast

On white

5.81
#B31CA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B31CA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CA3
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CA3#FFFFFF#000000##FFFFFF
##B31CA31.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1258A6
Deuteranopia (green-blind)
#566CA0
Tritanopia (blue-blind)
#BB3062
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31ca3;
/* rgb */ color: rgb(179, 28, 163);
/* oklch */ color: oklch(53.7% 0.224 333.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ebf',
    500: '#b31ca3',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca3;
$custom-light: #ce6ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca3",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 163
  },
  "hsl": {
    "h": 306.358,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.5374,
    "c": 0.22448,
    "h": 333.4
  },
  "luminance": 0.13059
}

Semantic roles & 50–950 ramp

primary
#B31CA3
secondary
#5FCB6B
accent
#F04C38
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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