#A31FA7#A31FA7

#A31FA7 is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.6% C 0.218 H 326.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#A31FA7
RGBrgb(163, 31, 167)
HSLhsl(298, 69%, 39%)
HSVhsv(298, 81%, 65%)
CMYKcmyk(2.4%, 81.4%, 0%, 34.5%)
CIE-LABlab(40.51, 66.06, -42.89)
CIE-LCHlch(40.51, 78.76, 327.01°)
OKLaboklab(51.62% 0.1824 -0.1193)
OKLCHoklch(51.62% 0.218 326.8)
XYZxyz(22.5689, 11.5582, 37.5940)
Luminance0.1156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31FA7 #23A71F
analogous
#5F1FA7 #A31FA7 #A71F67
triadic
#A31FA7 #A7A31F #1FA7A3
tetradic
#A31FA7 #A75F1F #23A71F #1F67A7
square
#A31FA7 #A75F1F #23A71F #1F67A7
split-complementary
#A31FA7 #67A71F #1FA75F
monochromatic
#3E0C40 #711573 #A31FA7 #D32BD8 #DD5FE1

Accessibility & contrast

On white

6.34
#A31FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#A31FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A31FA7
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31FA7#FFFFFF#000000##FFFFFF
##A31FA71.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#4465A4
Tritanopia (blue-blind)
#A83964
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a31fa7;
/* rgb */ color: rgb(163, 31, 167);
/* oklch */ color: oklch(51.6% 0.218 326.8);
Tailwind
colors: {
  custom: {
    50: '#c26dc2',
    500: '#a31fa7',
    950: '#000000',
  },
}
SCSS
$custom: #a31fa7;
$custom-light: #c26dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a31fa7",
  "rgb": {
    "r": 163,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 298.235,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.51618,
    "c": 0.21798,
    "h": 326.8
  },
  "luminance": 0.11557
}

Semantic roles & 50–950 ramp

primary
#A31FA7
secondary
#5FC65C
accent
#EC3C41
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A31FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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