#B31FA5#B31FA5

#B31FA5 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.224 H 332.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B31FA5
RGBrgb(179, 31, 165)
HSLhsl(306, 70%, 41%)
HSVhsv(306, 83%, 70%)
CMYKcmyk(0%, 82.7%, 7.8%, 29.8%)
CIE-LABlab(43.19, 68.93, -37.26)
CIE-LCHlch(43.19, 78.35, 331.61°)
OKLaboklab(54.01% 0.1988 -0.1025)
OKLCHoklch(54.01% 0.224 332.7)
XYZxyz(25.8721, 13.2826, 36.7912)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FA5 #1FB32D
analogous
#771FB3 #B31FA5 #B31F5B
triadic
#B31FA5 #A5B31F #1FA5B3
tetradic
#B31FA5 #B3771F #1FB32D #1F5BB3
square
#B31FA5 #B3771F #1FB32D #1F5BB3
split-complementary
#B31FA5 #5BB31F #1FB377
monochromatic
#4B0D45 #7F1675 #B31FA5 #DC33CC #E568D9

Accessibility & contrast

On white

5.74
#B31FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B31FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31FA5
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31FA5#FFFFFF#000000##FFFFFF
##B31FA51.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1259A8
Deuteranopia (green-blind)
#556DA2
Tritanopia (blue-blind)
#BB3363
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b31fa5;
/* rgb */ color: rgb(179, 31, 165);
/* oklch */ color: oklch(54.0% 0.224 332.7);
Tailwind
colors: {
  custom: {
    50: '#ce6fc0',
    500: '#b31fa5',
    950: '#000000',
  },
}
SCSS
$custom: #b31fa5;
$custom-light: #ce6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#b31fa5",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 305.676,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54011,
    "c": 0.22369,
    "h": 332.7
  },
  "luminance": 0.1328
}

Semantic roles & 50–950 ramp

primary
#B31FA5
secondary
#64CA6D
accent
#ED4B3B
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B31FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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