#B31AA6#B31AA6

#B31AA6 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.228 H 332.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#B31AA6
RGBrgb(179, 26, 166)
HSLhsl(305, 75%, 40%)
HSVhsv(305, 85%, 70%)
CMYKcmyk(0%, 85.5%, 7.3%, 29.8%)
CIE-LABlab(42.88, 70.12, -38.34)
CIE-LCHlch(42.88, 79.92, 331.33°)
OKLaboklab(53.81% 0.2019 -0.1056)
OKLCHoklch(53.81% 0.228 332.4)
XYZxyz(25.8429, 13.0780, 37.2322)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA6 #1AB327
analogous
#731AB3 #B31AA6 #B31A59
triadic
#B31AA6 #A6B31A #1AA6B3
tetradic
#B31AA6 #B3731A #1AB327 #1A59B3
square
#B31AA6 #B3731A #1AB327 #1A59B3
split-complementary
#B31AA6 #59B31A #1AB373
monochromatic
#480A43 #7E1274 #B31AA6 #E02AD1 #E860DC

Accessibility & contrast

On white

5.81
#B31AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B31AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31AA6
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA6#FFFFFF#000000##FFFFFF
##B31AA61.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0558A9
Deuteranopia (green-blind)
#536CA3
Tritanopia (blue-blind)
#BB3163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31aa6;
/* rgb */ color: rgb(179, 26, 166);
/* oklch */ color: oklch(53.8% 0.228 332.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ec1',
    500: '#b31aa6',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa6;
$custom-light: #ce6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa6",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 166
  },
  "hsl": {
    "h": 305.098,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53811,
    "c": 0.22784,
    "h": 332.4
  },
  "luminance": 0.13076
}

Semantic roles & 50–950 ramp

primary
#B31AA6
secondary
#5DCC66
accent
#F14637
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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