#B31AA3#B31AA3

#B31AA3 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.226 H 333.4°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#B31AA3
RGBrgb(179, 26, 163)
HSLhsl(306, 75%, 40%)
HSVhsv(306, 85%, 70%)
CMYKcmyk(0%, 85.5%, 8.9%, 29.8%)
CIE-LABlab(42.72, 69.69, -36.80)
CIE-LCHlch(42.72, 78.81, 332.16°)
OKLaboklab(53.64% 0.2019 -0.1012)
OKLCHoklch(53.64% 0.226 333.4)
XYZxyz(25.5709, 12.9692, 35.7998)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA3 #1AB32A
analogous
#771AB3 #B31AA3 #B31A56
triadic
#B31AA3 #A3B31A #1AA3B3
tetradic
#B31AA3 #B3771A #1AB32A #1A56B3
square
#B31AA3 #B3771A #1AB32A #1A56B3
split-complementary
#B31AA3 #56B31A #1AB377
monochromatic
#480A42 #7E1272 #B31AA3 #E02ACD #E860DA

Accessibility & contrast

On white

5.84
#B31AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31AA3
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA3#FFFFFF#000000##FFFFFF
##B31AA31.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E57A6
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#BB2F61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31aa3;
/* rgb */ color: rgb(179, 26, 163);
/* oklch */ color: oklch(53.6% 0.226 333.4);
Tailwind
colors: {
  custom: {
    50: '#ce6ebf',
    500: '#b31aa3',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa3;
$custom-light: #ce6ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa3",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 163
  },
  "hsl": {
    "h": 306.275,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53642,
    "c": 0.22582,
    "h": 333.4
  },
  "luminance": 0.12967
}

Semantic roles & 50–950 ramp

primary
#B31AA3
secondary
#5DCC68
accent
#F14A37
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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