#A31FA8#A31FA8

#A31FA8 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.7% C 0.219 H 326.5°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#A31FA8
RGBrgb(163, 31, 168)
HSLhsl(298, 69%, 39%)
HSVhsv(298, 82%, 66%)
CMYKcmyk(3%, 81.5%, 0%, 34.1%)
CIE-LABlab(40.57, 66.23, -43.39)
CIE-LCHlch(40.57, 79.17, 326.77°)
OKLaboklab(51.68% 0.1824 -0.1208)
OKLCHoklch(51.68% 0.219 326.5)
XYZxyz(22.6617, 11.5953, 38.0827)
Luminance0.1159 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31FA8 #24A81F
analogous
#5F1FA8 #A31FA8 #A81F69
triadic
#A31FA8 #A8A31F #1FA8A3
tetradic
#A31FA8 #A85F1F #24A81F #1F69A8
square
#A31FA8 #A85F1F #24A81F #1F69A8
split-complementary
#A31FA8 #69A81F #1FA85F
monochromatic
#3F0C41 #711574 #A31FA8 #D22CD8 #DD60E2

Accessibility & contrast

On white

6.33
#A31FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#A31FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A31FA8
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31FA8#FFFFFF#000000##FFFFFF
##A31FA81.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#4465A5
Tritanopia (blue-blind)
#A73A65
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a31fa8;
/* rgb */ color: rgb(163, 31, 168);
/* oklch */ color: oklch(51.7% 0.219 326.5);
Tailwind
colors: {
  custom: {
    50: '#c26dc2',
    500: '#a31fa8',
    950: '#000000',
  },
}
SCSS
$custom: #a31fa8;
$custom-light: #c26dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a31fa8",
  "rgb": {
    "r": 163,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 297.81,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.5168,
    "c": 0.21872,
    "h": 326.5
  },
  "luminance": 0.11594
}

Semantic roles & 50–950 ramp

primary
#A31FA8
secondary
#60C65D
accent
#EC3C43
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A31FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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