#B31FAA#B31FAA

#B31FAA is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.3% C 0.227 H 331.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#B31FAA
RGBrgb(179, 31, 170)
HSLhsl(304, 70%, 41%)
HSVhsv(304, 83%, 70%)
CMYKcmyk(0%, 82.7%, 5%, 29.8%)
CIE-LABlab(43.46, 69.67, -39.80)
CIE-LCHlch(43.46, 80.24, 330.26°)
OKLaboklab(54.3% 0.1988 -0.1099)
OKLCHoklch(54.3% 0.227 331.1)
XYZxyz(26.3361, 13.4682, 39.2350)
Luminance0.1347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31FAA #1FB328
analogous
#721FB3 #B31FAA #B31F60
triadic
#B31FAA #AAB31F #1FAAB3
tetradic
#B31FAA #B3721F #1FB328 #1F60B3
square
#B31FAA #B3721F #1FB328 #1F60B3
split-complementary
#B31FAA #60B31F #1FB372
monochromatic
#4B0D47 #7F1678 #B31FAA #DC33D2 #E568DD

Accessibility & contrast

On white

5.69
#B31FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B31FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31FAA
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31FAA#FFFFFF#000000##FFFFFF
##B31FAA1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#025AAD
Deuteranopia (green-blind)
#536EA7
Tritanopia (blue-blind)
#BA3666
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b31faa;
/* rgb */ color: rgb(179, 31, 170);
/* oklch */ color: oklch(54.3% 0.227 331.1);
Tailwind
colors: {
  custom: {
    50: '#ce70c4',
    500: '#b31faa',
    950: '#000000',
  },
}
SCSS
$custom: #b31faa;
$custom-light: #ce70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31faa",
  "rgb": {
    "r": 179,
    "g": 31,
    "b": 170
  },
  "hsl": {
    "h": 303.649,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54295,
    "c": 0.22714,
    "h": 331.1
  },
  "luminance": 0.13466
}

Semantic roles & 50–950 ramp

primary
#B31FAA
secondary
#64CA6A
accent
#ED453B
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B31FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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