#B31AA7#B31AA7

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

Color values

HEX#B31AA7
RGBrgb(179, 26, 167)
HSLhsl(305, 75%, 40%)
HSVhsv(305, 85%, 70%)
CMYKcmyk(0%, 85.5%, 6.7%, 29.8%)
CIE-LABlab(42.94, 70.27, -38.85)
CIE-LCHlch(42.94, 80.29, 331.06°)
OKLaboklab(53.87% 0.2019 -0.1071)
OKLCHoklch(53.87% 0.229 332)
XYZxyz(25.9350, 13.1148, 37.7172)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31AA7 #1AB326
analogous
#731AB3 #B31AA7 #B31A5A
triadic
#B31AA7 #A7B31A #1AA7B3
tetradic
#B31AA7 #B3731A #1AB326 #1A5AB3
square
#B31AA7 #B3731A #1AB326 #1A5AB3
split-complementary
#B31AA7 #5AB31A #1AB373
monochromatic
#480A43 #7E1275 #B31AA7 #E02AD2 #E860DD

Accessibility & contrast

On white

5.80
#B31AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31AA7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31AA7#FFFFFF#000000##FFFFFF
##B31AA71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0158AA
Deuteranopia (green-blind)
#536DA4
Tritanopia (blue-blind)
#BB3264
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31aa7;
/* rgb */ color: rgb(179, 26, 167);
/* oklch */ color: oklch(53.9% 0.229 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce6ec1',
    500: '#b31aa7',
    950: '#000000',
  },
}
SCSS
$custom: #b31aa7;
$custom-light: #ce6ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31aa7",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 167
  },
  "hsl": {
    "h": 304.706,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53868,
    "c": 0.22852,
    "h": 332
  },
  "luminance": 0.13113
}

Semantic roles & 50–950 ramp

primary
#B31AA7
secondary
#5DCC65
accent
#F14537
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #B31AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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