#A31FA9#A31FA9

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

Color values

HEX#A31FA9
RGBrgb(163, 31, 169)
HSLhsl(297, 69%, 39%)
HSVhsv(297, 82%, 66%)
CMYKcmyk(3.6%, 81.7%, 0%, 33.7%)
CIE-LABlab(40.63, 66.39, -43.89)
CIE-LCHlch(40.63, 79.58, 326.53°)
OKLaboklab(51.74% 0.1823 -0.1222)
OKLCHoklch(51.74% 0.219 326.2)
XYZxyz(22.7552, 11.6327, 38.5752)
Luminance0.1163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31FA9 #25A91F
analogous
#5E1FA9 #A31FA9 #A91F6A
triadic
#A31FA9 #A9A31F #1FA9A3
tetradic
#A31FA9 #A95E1F #25A91F #1F6AA9
square
#A31FA9 #A95E1F #25A91F #1F6AA9
split-complementary
#A31FA9 #6AA91F #1FA95E
monochromatic
#3F0C42 #711675 #A31FA9 #D12DD8 #DC60E2

Accessibility & contrast

On white

6.31
#A31FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#A31FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A31FA9
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31FA9#FFFFFF#000000##FFFFFF
##A31FA91.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#4365A6
Tritanopia (blue-blind)
#A73A66
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a31fa9;
/* rgb */ color: rgb(163, 31, 169);
/* oklch */ color: oklch(51.7% 0.219 326.2);
Tailwind
colors: {
  custom: {
    50: '#c26dc3',
    500: '#a31fa9',
    950: '#000000',
  },
}
SCSS
$custom: #a31fa9;
$custom-light: #c26dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#a31fa9",
  "rgb": {
    "r": 163,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 297.391,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.51743,
    "c": 0.21946,
    "h": 326.2
  },
  "luminance": 0.11631
}

Semantic roles & 50–950 ramp

primary
#A31FA9
secondary
#62C75D
accent
#EC3C44
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A31FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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