#B31FA7#B31FA7

#B31FA7 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.1% C 0.225 H 332.0°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#B31FA7
RGBrgb(179, 31, 167)
HSLhsl(305, 70%, 41%)
HSVhsv(305, 83%, 70%)
CMYKcmyk(0%, 82.7%, 6.7%, 29.8%)
CIE-LABlab(43.29, 69.22, -38.28)
CIE-LCHlch(43.29, 79.10, 331.06°)
OKLaboklab(54.12% 0.1988 -0.1055)
OKLCHoklch(54.12% 0.225 332)
XYZxyz(26.0555, 13.3560, 37.7574)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FA7 #1FB32B
analogous
#751FB3 #B31FA7 #B31F5D
triadic
#B31FA7 #A7B31F #1FA7B3
tetradic
#B31FA7 #B3751F #1FB32B #1F5DB3
square
#B31FA7 #B3751F #1FB32B #1F5DB3
split-complementary
#B31FA7 #5DB31F #1FB375
monochromatic
#4B0D46 #7F1676 #B31FA7 #DC33CE #E568DB

Accessibility & contrast

On white

5.72
#B31FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B31FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31FA7
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31FA7#FFFFFF#000000##FFFFFF
##B31FA71.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D59AA
Deuteranopia (green-blind)
#546DA4
Tritanopia (blue-blind)
#BB3465
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31fa7;
/* rgb */ color: rgb(179, 31, 167);
/* oklch */ color: oklch(54.1% 0.225 332.0);
Tailwind
colors: {
  custom: {
    50: '#ce6fc1',
    500: '#b31fa7',
    950: '#000000',
  },
}
SCSS
$custom: #b31fa7;
$custom-light: #ce6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#b31fa7",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 304.865,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54123,
    "c": 0.22506,
    "h": 332
  },
  "luminance": 0.13354
}

Semantic roles & 50–950 ramp

primary
#B31FA7
secondary
#64CA6C
accent
#ED493B
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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