#B31FAE#B31FAE

#B31FAE is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.5% C 0.230 H 329.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B31FAE
RGBrgb(179, 31, 174)
HSLhsl(302, 70%, 41%)
HSVhsv(302, 83%, 70%)
CMYKcmyk(0%, 82.7%, 2.8%, 29.8%)
CIE-LABlab(43.69, 70.28, -41.82)
CIE-LCHlch(43.69, 81.78, 329.25°)
OKLaboklab(54.53% 0.1987 -0.1158)
OKLCHoklch(54.53% 0.23 329.8)
XYZxyz(26.7202, 13.6218, 41.2582)
Luminance0.1362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FAE #1FB324
analogous
#6E1FB3 #B31FAE #B31F64
triadic
#B31FAE #AEB31F #1FAEB3
tetradic
#B31FAE #B36E1F #1FB324 #1F64B3
square
#B31FAE #B36E1F #1FB324 #1F64B3
split-complementary
#B31FAE #64B31F #1FB36E
monochromatic
#4B0D49 #7F167B #B31FAE #DC33D6 #E568E1

Accessibility & contrast

On white

5.64
#B31FAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B31FAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31FAE
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31FAE#FFFFFF#000000##FFFFFF
##B31FAE1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#506EAB
Tritanopia (blue-blind)
#BA3869
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31fae;
/* rgb */ color: rgb(179, 31, 174);
/* oklch */ color: oklch(54.5% 0.230 329.8);
Tailwind
colors: {
  custom: {
    50: '#ce70c7',
    500: '#b31fae',
    950: '#000000',
  },
}
SCSS
$custom: #b31fae;
$custom-light: #ce70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31fae",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 174
  },
  "hsl": {
    "h": 302.027,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54527,
    "c": 0.22995,
    "h": 329.8
  },
  "luminance": 0.1362
}

Semantic roles & 50–950 ramp

primary
#B31FAE
secondary
#64CA67
accent
#ED413B
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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