#B31AA2#B31AA2

#B31AA2 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.6% C 0.225 H 333.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B31AA2
RGBrgb(179, 26, 162)
HSLhsl(307, 75%, 40%)
HSVhsv(307, 85%, 70%)
CMYKcmyk(0%, 85.5%, 9.5%, 29.8%)
CIE-LABlab(42.66, 69.55, -36.29)
CIE-LCHlch(42.66, 78.44, 332.44°)
OKLaboklab(53.59% 0.2019 -0.0997)
OKLCHoklch(53.59% 0.225 333.7)
XYZxyz(25.4816, 12.9335, 35.3298)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA2 #1AB32B
analogous
#781AB3 #B31AA2 #B31A55
triadic
#B31AA2 #A2B31A #1AA2B3
tetradic
#B31AA2 #B3781A #1AB32B #1A55B3
square
#B31AA2 #B3781A #1AB32B #1A55B3
split-complementary
#B31AA2 #55B31A #1AB378
monochromatic
#480A41 #7E1272 #B31AA2 #E02ACC #E860D9

Accessibility & contrast

On white

5.86
#B31AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B31AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AA2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA2#FFFFFF#000000##FFFFFF
##B31AA21.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1157A5
Deuteranopia (green-blind)
#566C9F
Tritanopia (blue-blind)
#BC2E61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31aa2;
/* rgb */ color: rgb(179, 26, 162);
/* oklch */ color: oklch(53.6% 0.225 333.7);
Tailwind
colors: {
  custom: {
    50: '#ce6ebe',
    500: '#b31aa2',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa2;
$custom-light: #ce6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa2",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 162
  },
  "hsl": {
    "h": 306.667,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53586,
    "c": 0.22515,
    "h": 333.7
  },
  "luminance": 0.12931
}

Semantic roles & 50–950 ramp

primary
#B31AA2
secondary
#5DCC69
accent
#F14B37
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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