#A31CA9#A31CA9

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

Color values

HEX#A31CA9
RGBrgb(163, 28, 169)
HSLhsl(297, 72%, 39%)
HSVhsv(297, 83%, 66%)
CMYKcmyk(3.6%, 83.4%, 0%, 33.7%)
CIE-LABlab(40.38, 67.10, -44.28)
CIE-LCHlch(40.38, 80.39, 326.58°)
OKLaboklab(51.57% 0.1843 -0.1233)
OKLCHoklch(51.57% 0.222 326.2)
XYZxyz(22.6805, 11.4832, 38.5503)
Luminance0.1148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31CA9 #22A91C
analogous
#5C1CA9 #A31CA9 #A91C68
triadic
#A31CA9 #A9A31C #1CA9A3
tetradic
#A31CA9 #A95C1C #22A91C #1C68A9
square
#A31CA9 #A95C1C #22A91C #1C68A9
split-complementary
#A31CA9 #68A91C #1CA95C
monochromatic
#3E0B40 #701374 #A31CA9 #D427DB #DE5BE4

Accessibility & contrast

On white

6.37
#A31CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A31CA9
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31CA9#FFFFFF#000000##FFFFFF
##A31CA91.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#4265A6
Tritanopia (blue-blind)
#A73965
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a31ca9;
/* rgb */ color: rgb(163, 28, 169);
/* oklch */ color: oklch(51.6% 0.222 326.2);
Tailwind
colors: {
  custom: {
    50: '#c26cc3',
    500: '#a31ca9',
    950: '#000000',
  },
}
SCSS
$custom: #a31ca9;
$custom-light: #c26cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#a31ca9",
  "rgb": {
    "r": 163,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 297.447,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.51571,
    "c": 0.22173,
    "h": 326.2
  },
  "luminance": 0.11482
}

Semantic roles & 50–950 ramp

primary
#A31CA9
secondary
#5EC859
accent
#EE3941
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A31CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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