#B31CA8#B31CA8

#B31CA8 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.228 H 331.7°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#B31CA8
RGBrgb(179, 28, 168)
HSLhsl(304, 73%, 41%)
HSVhsv(304, 84%, 70%)
CMYKcmyk(0%, 84.4%, 6.1%, 29.8%)
CIE-LABlab(43.13, 70.02, -39.14)
CIE-LCHlch(43.13, 80.22, 330.80°)
OKLaboklab(54.02% 0.2007 -0.108)
OKLCHoklch(54.02% 0.228 331.7)
XYZxyz(26.0736, 13.2436, 38.2212)
Luminance0.1324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA8 #1CB327
analogous
#721CB3 #B31CA8 #B31C5C
triadic
#B31CA8 #A8B31C #1CA8B3
tetradic
#B31CA8 #B3721C #1CB327 #1C5CB3
square
#B31CA8 #B3721C #1CB327 #1C5CB3
split-complementary
#B31CA8 #5CB31C #1CB372
monochromatic
#490B45 #7E1476 #B31CA8 #DE2ED1 #E763DD

Accessibility & contrast

On white

5.76
#B31CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#B31CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CA8
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CA8#FFFFFF#000000##FFFFFF
##B31CA81.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0259AB
Deuteranopia (green-blind)
#536DA5
Tritanopia (blue-blind)
#BB3365
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31ca8;
/* rgb */ color: rgb(179, 28, 168);
/* oklch */ color: oklch(54.0% 0.228 331.7);
Tailwind
colors: {
  custom: {
    50: '#ce6fc2',
    500: '#b31ca8',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca8;
$custom-light: #ce6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca8",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 168
  },
  "hsl": {
    "h": 304.371,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54023,
    "c": 0.22788,
    "h": 331.7
  },
  "luminance": 0.13241
}

Semantic roles & 50–950 ramp

primary
#B31CA8
secondary
#5FCB67
accent
#F04638
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B31CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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