#B31AA8#B31AA8

#B31AA8 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.229 H 331.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B31AA8
RGBrgb(179, 26, 168)
HSLhsl(304, 75%, 40%)
HSVhsv(304, 85%, 70%)
CMYKcmyk(0%, 85.5%, 6.1%, 29.8%)
CIE-LABlab(42.99, 70.42, -39.36)
CIE-LCHlch(42.99, 80.67, 330.80°)
OKLaboklab(53.93% 0.2018 -0.1086)
OKLCHoklch(53.93% 0.229 331.7)
XYZxyz(26.0278, 13.1519, 38.2060)
Luminance0.1315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA8 #1AB325
analogous
#721AB3 #B31AA8 #B31A5B
triadic
#B31AA8 #A8B31A #1AA8B3
tetradic
#B31AA8 #B3721A #1AB325 #1A5BB3
square
#B31AA8 #B3721A #1AB325 #1A5BB3
split-complementary
#B31AA8 #5BB31A #1AB372
monochromatic
#480A44 #7E1276 #B31AA8 #E02AD3 #E860DE

Accessibility & contrast

On white

5.79
#B31AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B31AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AA8
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA8#FFFFFF#000000##FFFFFF
##B31AA81.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#526DA5
Tritanopia (blue-blind)
#BB3264
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31aa8;
/* rgb */ color: rgb(179, 26, 168);
/* oklch */ color: oklch(53.9% 0.229 331.7);
Tailwind
colors: {
  custom: {
    50: '#ce6ec2',
    500: '#b31aa8',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa8;
$custom-light: #ce6ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa8",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 168
  },
  "hsl": {
    "h": 304.314,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53926,
    "c": 0.22919,
    "h": 331.7
  },
  "luminance": 0.1315
}

Semantic roles & 50–950 ramp

primary
#B31AA8
secondary
#5DCC65
accent
#F14437
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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