#B31CA6#B31CA6

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

Color values

HEX#B31CA6
RGBrgb(179, 28, 166)
HSLhsl(305, 73%, 41%)
HSVhsv(305, 84%, 70%)
CMYKcmyk(0%, 84.4%, 7.3%, 29.8%)
CIE-LABlab(43.02, 69.72, -38.12)
CIE-LCHlch(43.02, 79.46, 331.33°)
OKLaboklab(53.91% 0.2007 -0.105)
OKLCHoklch(53.91% 0.227 332.4)
XYZxyz(25.8887, 13.1697, 37.2475)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31CA6 #1CB329
analogous
#751CB3 #B31CA6 #B31C5A
triadic
#B31CA6 #A6B31C #1CA6B3
tetradic
#B31CA6 #B3751C #1CB329 #1C5AB3
square
#B31CA6 #B3751C #1CB329 #1C5AB3
split-complementary
#B31CA6 #5AB31C #1CB375
monochromatic
#490B44 #7E1475 #B31CA6 #DE2ECF #E763DB

Accessibility & contrast

On white

5.78
#B31CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B31CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31CA6
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31CA6#FFFFFF#000000##FFFFFF
##B31CA61.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0958A9
Deuteranopia (green-blind)
#546DA3
Tritanopia (blue-blind)
#BB3263
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31ca6;
/* rgb */ color: rgb(179, 28, 166);
/* oklch */ color: oklch(53.9% 0.227 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce6fc1',
    500: '#b31ca6',
    950: '#000000',
  },
}
SCSS
$custom: #b31ca6;
$custom-light: #ce6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ca6",
  "rgb": {
    "r": 179,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 305.166,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.53909,
    "c": 0.22651,
    "h": 332.4
  },
  "luminance": 0.13167
}

Semantic roles & 50–950 ramp

primary
#B31CA6
secondary
#5FCB69
accent
#F04838
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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