#B31AB3#B31AB3

#B31AB3 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.6% C 0.237 H 328.2°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#B31AB3
RGBrgb(179, 26, 179)
HSLhsl(300, 75%, 40%)
HSVhsv(300, 85%, 70%)
CMYKcmyk(0%, 85.5%, 0%, 29.8%)
CIE-LABlab(43.62, 72.08, -44.88)
CIE-LCHlch(43.62, 84.91, 328.09°)
OKLaboklab(54.58% 0.2013 -0.1246)
OKLCHoklch(54.58% 0.237 328.2)
XYZxyz(27.0962, 13.5793, 43.8330)
Luminance0.1358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AB3 #1AB31A
analogous
#661AB3 #B31AB3 #B31A66
triadic
#B31AB3 #B3B31A #1AB3B3
tetradic
#B31AB3 #B3661A #1AB31A #1A66B3
square
#B31AB3 #B3661A #1AB31A #1A66B3
split-complementary
#B31AB3 #66B31A #1AB366
monochromatic
#480A48 #7E127E #B31AB3 #E02AE0 #E860E8

Accessibility & contrast

On white

5.65
#B31AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B31AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AB3
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AB3#FFFFFF#000000##FFFFFF
##B31AB31.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#B9396B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31ab3;
/* rgb */ color: rgb(179, 26, 179);
/* oklch */ color: oklch(54.6% 0.237 328.2);
Tailwind
colors: {
  custom: {
    50: '#ce6fca',
    500: '#b31ab3',
    950: '#000000',
  },
}
SCSS
$custom: #b31ab3;
$custom-light: #ce6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#b31ab3",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 300,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.54576,
    "c": 0.23679,
    "h": 328.2
  },
  "luminance": 0.13577
}

Semantic roles & 50–950 ramp

primary
#B31AB3
secondary
#5DCC5D
accent
#F13737
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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