#B31FA0#B31FA0

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

Color values

HEX#B31FA0
RGBrgb(179, 31, 160)
HSLhsl(308, 70%, 41%)
HSVhsv(308, 83%, 70%)
CMYKcmyk(0%, 82.7%, 10.6%, 29.8%)
CIE-LABlab(42.92, 68.20, -34.69)
CIE-LCHlch(42.92, 76.52, 333.04°)
OKLaboklab(53.74% 0.1987 -0.0951)
OKLCHoklch(53.74% 0.22 334.4)
XYZxyz(25.4259, 13.1041, 34.4411)
Luminance0.1310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FA0 #1FB332
analogous
#7C1FB3 #B31FA0 #B31F56
triadic
#B31FA0 #A0B31F #1FA0B3
tetradic
#B31FA0 #B37C1F #1FB332 #1F56B3
square
#B31FA0 #B37C1F #1FB332 #1F56B3
split-complementary
#B31FA0 #56B31F #1FB37C
monochromatic
#4B0D43 #7F1671 #B31FA0 #DC33C6 #E568D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B31FA0#FFFFFF#000000##FFFFFF
##B31FA01.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)
#1B58A3
Deuteranopia (green-blind)
#586D9D
Tritanopia (blue-blind)
#BC3061
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b31fa0;
/* rgb */ color: rgb(179, 31, 160);
/* oklch */ color: oklch(53.7% 0.220 334.4);
Tailwind
colors: {
  custom: {
    50: '#ce6fbc',
    500: '#b31fa0',
    950: '#000000',
  },
}
SCSS
$custom: #b31fa0;
$custom-light: #ce6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#b31fa0",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 307.703,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53735,
    "c": 0.22029,
    "h": 334.4
  },
  "luminance": 0.13102
}

Semantic roles & 50–950 ramp

primary
#B31FA0
secondary
#64CA71
accent
#ED513B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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