#A331A7#A331A7

#A331A7 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.0% C 0.200 H 326.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#A331A7
RGBrgb(163, 49, 167)
HSLhsl(298, 55%, 42%)
HSVhsv(298, 71%, 65%)
CMYKcmyk(2.4%, 70.7%, 0%, 34.5%)
CIE-LABlab(42.42, 60.56, -39.83)
CIE-LCHlch(42.42, 72.48, 326.66°)
OKLaboklab(52.98% 0.167 -0.1105)
OKLCHoklch(52.98% 0.2 326.5)
XYZxyz(23.1772, 12.7747, 37.7967)
Luminance0.1277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A331A7 #35A731
analogous
#6831A7 #A331A7 #A73170
triadic
#A331A7 #A7A331 #31A7A3
tetradic
#A331A7 #A76831 #35A731 #3170A7
square
#A331A7 #A76831 #35A731 #3170A7
split-complementary
#A331A7 #70A731 #31A768
monochromatic
#471548 #752378 #A331A7 #C64BCA #D57AD8

Accessibility & contrast

On white

5.91
#A331A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#A331A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A331A7
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A331A7#FFFFFF#000000##FFFFFF
##A331A71.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185BAA
Deuteranopia (green-blind)
#4C69A4
Tritanopia (blue-blind)
#A74369
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a331a7;
/* rgb */ color: rgb(163, 49, 167);
/* oklch */ color: oklch(53.0% 0.200 326.5);
Tailwind
colors: {
  custom: {
    50: '#c274c1',
    500: '#a331a7',
    950: '#000000',
  },
}
SCSS
$custom: #a331a7;
$custom-light: #c274c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a331a7",
  "rgb": {
    "r": 163,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 297.966,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52984,
    "c": 0.20027,
    "h": 326.5
  },
  "luminance": 0.12773
}

Semantic roles & 50–950 ramp

primary
#A331A7
secondary
#76C173
accent
#DE4A4F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A331A7

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

Preview Lab → · Contrast checker → · Palette generator →

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