#B31CA7#B31CA7

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

Color values

HEX#B31CA7
RGBrgb(179, 28, 167)
HSLhsl(305, 73%, 41%)
HSVhsv(305, 84%, 70%)
CMYKcmyk(0%, 84.4%, 6.7%, 29.8%)
CIE-LABlab(43.07, 69.87, -38.63)
CIE-LCHlch(43.07, 79.84, 331.06°)
OKLaboklab(53.97% 0.2007 -0.1065)
OKLCHoklch(53.97% 0.227 332)
XYZxyz(25.9808, 13.2065, 37.7325)
Luminance0.1320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA7 #1CB328
analogous
#731CB3 #B31CA7 #B31C5B
triadic
#B31CA7 #A7B31C #1CA7B3
tetradic
#B31CA7 #B3731C #1CB328 #1C5BB3
square
#B31CA7 #B3731C #1CB328 #1C5BB3
split-complementary
#B31CA7 #5BB31C #1CB373
monochromatic
#490B44 #7E1476 #B31CA7 #DE2ED0 #E763DC

Accessibility & contrast

On white

5.77
#B31CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B31CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CA7
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CA7#FFFFFF#000000##FFFFFF
##B31CA71.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0659AA
Deuteranopia (green-blind)
#536DA4
Tritanopia (blue-blind)
#BB3364
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31ca7;
/* rgb */ color: rgb(179, 28, 167);
/* oklch */ color: oklch(54.0% 0.227 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce6fc1',
    500: '#b31ca7',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca7;
$custom-light: #ce6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca7",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 304.768,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53966,
    "c": 0.22719,
    "h": 332
  },
  "luminance": 0.13204
}

Semantic roles & 50–950 ramp

primary
#B31CA7
secondary
#5FCB68
accent
#F04738
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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