#B31AA1#B31AA1

#B31AA1 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.224 H 334.0°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#B31AA1
RGBrgb(179, 26, 161)
HSLhsl(307, 75%, 40%)
HSVhsv(307, 85%, 70%)
CMYKcmyk(0%, 85.5%, 10.1%, 29.8%)
CIE-LABlab(42.61, 69.40, -35.78)
CIE-LCHlch(42.61, 78.08, 332.73°)
OKLaboklab(53.53% 0.2019 -0.0982)
OKLCHoklch(53.53% 0.224 334)
XYZxyz(25.3931, 12.8980, 34.8635)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA1 #1AB32C
analogous
#791AB3 #B31AA1 #B31A54
triadic
#B31AA1 #A1B31A #1AA1B3
tetradic
#B31AA1 #B3791A #1AB32C #1A54B3
square
#B31AA1 #B3791A #1AB32C #1A54B3
split-complementary
#B31AA1 #54B31A #1AB379
monochromatic
#480A41 #7E1271 #B31AA1 #E02ACB #E860D8

Accessibility & contrast

On white

5.87
#B31AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#B31AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AA1
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA1#FFFFFF#000000##FFFFFF
##B31AA11.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1357A4
Deuteranopia (green-blind)
#566C9E
Tritanopia (blue-blind)
#BC2E60
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31aa1;
/* rgb */ color: rgb(179, 26, 161);
/* oklch */ color: oklch(53.5% 0.224 334.0);
Tailwind
colors: {
  custom: {
    50: '#ce6ebd',
    500: '#b31aa1',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa1;
$custom-light: #ce6ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa1",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 307.059,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53531,
    "c": 0.22449,
    "h": 334
  },
  "luminance": 0.12896
}

Semantic roles & 50–950 ramp

primary
#B31AA1
secondary
#5DCC6A
accent
#F14D37
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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