#A331A1#A331A1

#A331A1 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.6% C 0.195 H 328.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#A331A1
RGBrgb(163, 49, 161)
HSLhsl(301, 54%, 42%)
HSVhsv(301, 70%, 64%)
CMYKcmyk(0%, 69.9%, 1.2%, 36.1%)
CIE-LABlab(42.09, 59.54, -36.77)
CIE-LCHlch(42.09, 69.98, 328.30°)
OKLaboklab(52.64% 0.1669 -0.1017)
OKLCHoklch(52.64% 0.195 328.7)
XYZxyz(22.6354, 12.5580, 34.9430)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A331A1 #31A333
analogous
#6C31A3 #A331A1 #A33168
triadic
#A331A1 #A1A331 #31A1A3
tetradic
#A331A1 #A36C31 #31A333 #3168A3
square
#A331A1 #A36C31 #31A333 #3168A3
split-complementary
#A331A1 #68A331 #31A36C
monochromatic
#451544 #742373 #A331A1 #C849C6 #D678D5

Accessibility & contrast

On white

5.98
#A331A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A331A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A331A1
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A331A1#FFFFFF#000000##FFFFFF
##A331A11.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA4
Deuteranopia (green-blind)
#50699E
Tritanopia (blue-blind)
#A84165
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a331a1;
/* rgb */ color: rgb(163, 49, 161);
/* oklch */ color: oklch(52.6% 0.195 328.7);
Tailwind
colors: {
  custom: {
    50: '#c274bd',
    500: '#a331a1',
    950: '#000000',
  },
}
SCSS
$custom: #a331a1;
$custom-light: #c274bd;
$custom-dark: #000000;
JSON
{
  "hex": "#a331a1",
  "rgb": {
    "r": 163,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 301.053,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52638,
    "c": 0.19545,
    "h": 328.7
  },
  "luminance": 0.12556
}

Semantic roles & 50–950 ramp

primary
#A331A1
secondary
#71BF72
accent
#DD4D4B
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A331A1

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

Preview Lab → · Contrast checker → · Palette generator →

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