#A31EA9#A31EA9

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

Color values

HEX#A31EA9
RGBrgb(163, 30, 169)
HSLhsl(297, 70%, 39%)
HSVhsv(297, 82%, 66%)
CMYKcmyk(3.6%, 82.2%, 0%, 33.7%)
CIE-LABlab(40.54, 66.63, -44.02)
CIE-LCHlch(40.54, 79.86, 326.55°)
OKLaboklab(51.68% 0.183 -0.1226)
OKLCHoklch(51.68% 0.22 326.2)
XYZxyz(22.7295, 11.5813, 38.5667)
Luminance0.1158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31EA9 #24A91E
analogous
#5E1EA9 #A31EA9 #A91E6A
triadic
#A31EA9 #A9A31E #1EA9A3
tetradic
#A31EA9 #A95E1E #24A91E #1E6AA9
square
#A31EA9 #A95E1E #24A91E #1E6AA9
split-complementary
#A31EA9 #6AA91E #1EA95E
monochromatic
#3F0C41 #711575 #A31EA9 #D22BD9 #DD5FE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A31EA9#FFFFFF#000000##FFFFFF
##A31EA91.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)
#0055AD
Deuteranopia (green-blind)
#4265A6
Tritanopia (blue-blind)
#A73A65
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a31ea9;
/* rgb */ color: rgb(163, 30, 169);
/* oklch */ color: oklch(51.7% 0.220 326.2);
Tailwind
colors: {
  custom: {
    50: '#c26dc3',
    500: '#a31ea9',
    950: '#000000',
  },
}
SCSS
$custom: #a31ea9;
$custom-light: #c26dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#a31ea9",
  "rgb": {
    "r": 163,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 297.41,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51684,
    "c": 0.22024,
    "h": 326.2
  },
  "luminance": 0.1158
}

Semantic roles & 50–950 ramp

primary
#A31EA9
secondary
#60C75C
accent
#ED3B43
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A31EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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