#B31CB3#B31CB3

#B31CB3 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.7% C 0.236 H 328.2°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B31CB3
RGBrgb(179, 28, 179)
HSLhsl(300, 73%, 41%)
HSVhsv(300, 84%, 70%)
CMYKcmyk(0%, 84.4%, 0%, 29.8%)
CIE-LABlab(43.76, 71.68, -44.66)
CIE-LCHlch(43.76, 84.46, 328.07°)
OKLaboklab(54.67% 0.2002 -0.124)
OKLCHoklch(54.67% 0.236 328.2)
XYZxyz(27.1420, 13.6710, 43.8483)
Luminance0.1367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CB3 #1CB31C
analogous
#671CB3 #B31CB3 #B31C67
triadic
#B31CB3 #B3B31C #1CB3B3
tetradic
#B31CB3 #B3671C #1CB31C #1C67B3
square
#B31CB3 #B3671C #1CB31C #1C67B3
split-complementary
#B31CB3 #67B31C #1CB367
monochromatic
#490B49 #7E147E #B31CB3 #DE2EDE #E763E7

Accessibility & contrast

On white

5.62
#B31CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#B31CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CB3
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CB3#FFFFFF#000000##FFFFFF
##B31CB31.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#B93A6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31cb3;
/* rgb */ color: rgb(179, 28, 179);
/* oklch */ color: oklch(54.7% 0.236 328.2);
Tailwind
colors: {
  custom: {
    50: '#ce6fca',
    500: '#b31cb3',
    950: '#000000',
  },
}
SCSS
$custom: #b31cb3;
$custom-light: #ce6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#b31cb3",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 300,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54671,
    "c": 0.23553,
    "h": 328.2
  },
  "luminance": 0.13669
}

Semantic roles & 50–950 ramp

primary
#B31CB3
secondary
#5FCB5F
accent
#F03838
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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