#B31AA0#B31AA0

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

Color values

HEX#B31AA0
RGBrgb(179, 26, 160)
HSLhsl(307, 75%, 40%)
HSVhsv(307, 85%, 70%)
CMYKcmyk(0%, 85.5%, 10.6%, 29.8%)
CIE-LABlab(42.56, 69.26, -35.26)
CIE-LCHlch(42.56, 77.72, 333.02°)
OKLaboklab(53.48% 0.2018 -0.0967)
OKLCHoklch(53.48% 0.224 334.4)
XYZxyz(25.3053, 12.8629, 34.4010)
Luminance0.1286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA0 #1AB32D
analogous
#791AB3 #B31AA0 #B31A53
triadic
#B31AA0 #A0B31A #1AA0B3
tetradic
#B31AA0 #B3791A #1AB32D #1A53B3
square
#B31AA0 #B3791A #1AB32D #1A53B3
split-complementary
#B31AA0 #53B31A #1AB379
monochromatic
#480A40 #7E1270 #B31AA0 #E02AC9 #E860D7

Accessibility & contrast

On white

5.88
#B31AA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B31AA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AA0
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA0#FFFFFF#000000##FFFFFF
##B31AA01.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1557A3
Deuteranopia (green-blind)
#576C9D
Tritanopia (blue-blind)
#BC2D60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31aa0;
/* rgb */ color: rgb(179, 26, 160);
/* oklch */ color: oklch(53.5% 0.224 334.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ebc',
    500: '#b31aa0',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa0;
$custom-light: #ce6ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa0",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 307.451,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53476,
    "c": 0.22382,
    "h": 334.4
  },
  "luminance": 0.12861
}

Semantic roles & 50–950 ramp

primary
#B31AA0
secondary
#5DCC6B
accent
#F14E37
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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