#A31DA6#A31DA6

#A31DA6 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.4% C 0.219 H 327.2°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#A31DA6
RGBrgb(163, 29, 166)
HSLhsl(299, 70%, 38%)
HSVhsv(299, 83%, 65%)
CMYKcmyk(1.8%, 82.5%, 0%, 34.9%)
CIE-LABlab(40.28, 66.38, -42.65)
CIE-LCHlch(40.28, 78.90, 327.28°)
OKLaboklab(51.44% 0.1839 -0.1186)
OKLCHoklch(51.44% 0.219 327.2)
XYZxyz(22.4262, 11.4201, 37.0921)
Luminance0.1142 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A31DA6 #20A61D
analogous
#5E1DA6 #A31DA6 #A61D64
triadic
#A31DA6 #A6A31D #1DA6A3
tetradic
#A31DA6 #A65E1D #20A61D #1D64A6
square
#A31DA6 #A65E1D #20A61D #1D64A6
split-complementary
#A31DA6 #64A61D #1DA65E
monochromatic
#3D0B3E #701472 #A31DA6 #D527D9 #DF5BE2

Accessibility & contrast

On white

6.40
#A31DA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A31DA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A31DA6
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A31DA6#FFFFFF#000000##FFFFFF
##A31DA61.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#4465A3
Tritanopia (blue-blind)
#A83864
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a31da6;
/* rgb */ color: rgb(163, 29, 166);
/* oklch */ color: oklch(51.4% 0.219 327.2);
Tailwind
colors: {
  custom: {
    50: '#c26cc1',
    500: '#a31da6',
    950: '#000000',
  },
}
SCSS
$custom: #a31da6;
$custom-light: #c26cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#a31da6",
  "rgb": {
    "r": 163,
    "g": 29,
    "b": 166
  },
  "hsl": {
    "h": 298.686,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.51439,
    "c": 0.21878,
    "h": 327.2
  },
  "luminance": 0.11418
}

Semantic roles & 50–950 ramp

primary
#A31DA6
secondary
#5BC659
accent
#ED3B3F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A31DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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