#A331A2#A331A2

#A331A2 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.7% C 0.196 H 328.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#A331A2
RGBrgb(163, 49, 162)
HSLhsl(301, 54%, 42%)
HSVhsv(301, 70%, 64%)
CMYKcmyk(0%, 69.9%, 0.6%, 36.1%)
CIE-LABlab(42.14, 59.70, -37.29)
CIE-LCHlch(42.14, 70.39, 328.01°)
OKLaboklab(52.7% 0.167 -0.1031)
OKLCHoklch(52.7% 0.196 328.3)
XYZxyz(22.7239, 12.5934, 35.4093)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A331A2 #31A332
analogous
#6B31A3 #A331A2 #A33169
triadic
#A331A2 #A2A331 #31A2A3
tetradic
#A331A2 #A36B31 #31A332 #3169A3
square
#A331A2 #A36B31 #31A332 #3169A3
split-complementary
#A331A2 #69A331 #31A36B
monochromatic
#451544 #742373 #A331A2 #C849C7 #D678D6

Accessibility & contrast

On white

5.97
#A331A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#A331A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A331A2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A331A2#FFFFFF#000000##FFFFFF
##A331A21.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA5
Deuteranopia (green-blind)
#4F699F
Tritanopia (blue-blind)
#A84166
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a331a2;
/* rgb */ color: rgb(163, 49, 162);
/* oklch */ color: oklch(52.7% 0.196 328.3);
Tailwind
colors: {
  custom: {
    50: '#c274be',
    500: '#a331a2',
    950: '#000000',
  },
}
SCSS
$custom: #a331a2;
$custom-light: #c274be;
$custom-dark: #000000;
JSON
{
  "hex": "#a331a2",
  "rgb": {
    "r": 163,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 300.526,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52695,
    "c": 0.19625,
    "h": 328.3
  },
  "luminance": 0.12592
}

Semantic roles & 50–950 ramp

primary
#A331A2
secondary
#71BF72
accent
#DD4C4B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A331A2

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

Preview Lab → · Contrast checker → · Palette generator →

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