#B31AA4#B31AA4

#B31AA4 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.226 H 333.0°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#B31AA4
RGBrgb(179, 26, 164)
HSLhsl(306, 75%, 40%)
HSVhsv(306, 85%, 70%)
CMYKcmyk(0%, 85.5%, 8.4%, 29.8%)
CIE-LABlab(42.77, 69.83, -37.32)
CIE-LCHlch(42.77, 79.18, 331.88°)
OKLaboklab(53.7% 0.2019 -0.1027)
OKLCHoklch(53.7% 0.226 333)
XYZxyz(25.6608, 13.0051, 36.2735)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA4 #1AB329
analogous
#751AB3 #B31AA4 #B31A58
triadic
#B31AA4 #A4B31A #1AA4B3
tetradic
#B31AA4 #B3751A #1AB329 #1A58B3
square
#B31AA4 #B3751A #1AB329 #1A58B3
split-complementary
#B31AA4 #58B31A #1AB375
monochromatic
#480A42 #7E1273 #B31AA4 #E02ACE #E860DA

Accessibility & contrast

On white

5.83
#B31AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#B31AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AA4
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA4#FFFFFF#000000##FFFFFF
##B31AA41.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B58A7
Deuteranopia (green-blind)
#556CA1
Tritanopia (blue-blind)
#BB3062
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31aa4;
/* rgb */ color: rgb(179, 26, 164);
/* oklch */ color: oklch(53.7% 0.226 333.0);
Tailwind
colors: {
  custom: {
    50: '#ce6ebf',
    500: '#b31aa4',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa4;
$custom-light: #ce6ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa4",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 164
  },
  "hsl": {
    "h": 305.882,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53698,
    "c": 0.22649,
    "h": 333
  },
  "luminance": 0.13003
}

Semantic roles & 50–950 ramp

primary
#B31AA4
secondary
#5DCC68
accent
#F14937
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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