#B31FA1#B31FA1

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

Color values

HEX#B31FA1
RGBrgb(179, 31, 161)
HSLhsl(307, 70%, 41%)
HSVhsv(307, 83%, 70%)
CMYKcmyk(0%, 82.7%, 10.1%, 29.8%)
CIE-LABlab(42.97, 68.35, -35.20)
CIE-LCHlch(42.97, 76.88, 332.75°)
OKLaboklab(53.79% 0.1987 -0.0966)
OKLCHoklch(53.79% 0.221 334.1)
XYZxyz(25.5137, 13.1392, 34.9037)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FA1 #1FB331
analogous
#7B1FB3 #B31FA1 #B31F57
triadic
#B31FA1 #A1B31F #1FA1B3
tetradic
#B31FA1 #B37B1F #1FB331 #1F57B3
square
#B31FA1 #B37B1F #1FB331 #1F57B3
split-complementary
#B31FA1 #57B31F #1FB37B
monochromatic
#4B0D43 #7F1672 #B31FA1 #DC33C7 #E568D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31FA1#FFFFFF#000000##FFFFFF
##B31FA11.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)
#1A58A4
Deuteranopia (green-blind)
#576D9E
Tritanopia (blue-blind)
#BC3061
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31fa1;
/* rgb */ color: rgb(179, 31, 161);
/* oklch */ color: oklch(53.8% 0.221 334.1);
Tailwind
colors: {
  custom: {
    50: '#ce6fbd',
    500: '#b31fa1',
    950: '#000000',
  },
}
SCSS
$custom: #b31fa1;
$custom-light: #ce6fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#b31fa1",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 307.297,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5379,
    "c": 0.22097,
    "h": 334.1
  },
  "luminance": 0.13137
}

Semantic roles & 50–950 ramp

primary
#B31FA1
secondary
#64CA70
accent
#ED503B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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