#A31FA6#A31FA6

#A31FA6 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.6% C 0.217 H 327.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#A31FA6
RGBrgb(163, 31, 166)
HSLhsl(299, 69%, 39%)
HSVhsv(299, 81%, 65%)
CMYKcmyk(1.8%, 81.3%, 0%, 34.9%)
CIE-LABlab(40.45, 65.90, -42.38)
CIE-LCHlch(40.45, 78.35, 327.25°)
OKLaboklab(51.56% 0.1825 -0.1178)
OKLCHoklch(51.56% 0.217 327.1)
XYZxyz(22.4768, 11.5213, 37.1090)
Luminance0.1152 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31FA6 #22A61F
analogous
#5F1FA6 #A31FA6 #A61F65
triadic
#A31FA6 #A6A31F #1FA6A3
tetradic
#A31FA6 #A65F1F #22A61F #1F65A6
square
#A31FA6 #A65F1F #22A61F #1F65A6
split-complementary
#A31FA6 #65A61F #1FA65F
monochromatic
#3E0C3F #701572 #A31FA6 #D42BD7 #DE5EE1

Accessibility & contrast

On white

6.36
#A31FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#A31FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A31FA6
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31FA6#FFFFFF#000000##FFFFFF
##A31FA61.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#4565A3
Tritanopia (blue-blind)
#A83964
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a31fa6;
/* rgb */ color: rgb(163, 31, 166);
/* oklch */ color: oklch(51.6% 0.217 327.1);
Tailwind
colors: {
  custom: {
    50: '#c26dc1',
    500: '#a31fa6',
    950: '#000000',
  },
}
SCSS
$custom: #a31fa6;
$custom-light: #c26dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a31fa6",
  "rgb": {
    "r": 163,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 298.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.51556,
    "c": 0.21723,
    "h": 327.1
  },
  "luminance": 0.1152
}

Semantic roles & 50–950 ramp

primary
#A31FA6
secondary
#5EC55B
accent
#EB3C40
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A31FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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