#B31AA5#B31AA5

#B31AA5 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.8% C 0.227 H 332.7°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#B31AA5
RGBrgb(179, 26, 165)
HSLhsl(305, 75%, 40%)
HSVhsv(305, 85%, 70%)
CMYKcmyk(0%, 85.5%, 7.8%, 29.8%)
CIE-LABlab(42.83, 69.98, -37.83)
CIE-LCHlch(42.83, 79.55, 331.61°)
OKLaboklab(53.76% 0.2019 -0.1042)
OKLCHoklch(53.76% 0.227 332.7)
XYZxyz(25.7515, 13.0414, 36.7510)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA5 #1AB328
analogous
#741AB3 #B31AA5 #B31A59
triadic
#B31AA5 #A5B31A #1AA5B3
tetradic
#B31AA5 #B3741A #1AB328 #1A59B3
square
#B31AA5 #B3741A #1AB328 #1A59B3
split-complementary
#B31AA5 #59B31A #1AB374
monochromatic
#480A42 #7E1274 #B31AA5 #E02ACF #E860DB

Accessibility & contrast

On white

5.82
#B31AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B31AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AA5
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA5#FFFFFF#000000##FFFFFF
##B31AA51.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0858A8
Deuteranopia (green-blind)
#546CA2
Tritanopia (blue-blind)
#BB3063
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31aa5;
/* rgb */ color: rgb(179, 26, 165);
/* oklch */ color: oklch(53.8% 0.227 332.7);
Tailwind
colors: {
  custom: {
    50: '#ce6ec0',
    500: '#b31aa5',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa5;
$custom-light: #ce6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa5",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 165
  },
  "hsl": {
    "h": 305.49,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53755,
    "c": 0.22716,
    "h": 332.7
  },
  "luminance": 0.13039
}

Semantic roles & 50–950 ramp

primary
#B31AA5
secondary
#5DCC67
accent
#F14837
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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