#A81FA2#A81FA2

#A81FA2 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.1% C 0.217 H 330.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#A81FA2
RGBrgb(168, 31, 162)
HSLhsl(303, 69%, 39%)
HSVhsv(303, 82%, 66%)
CMYKcmyk(0%, 81.5%, 3.6%, 34.1%)
CIE-LABlab(41.08, 66.26, -38.92)
CIE-LCHlch(41.08, 76.84, 329.57°)
OKLaboklab(52.1% 0.1879 -0.1076)
OKLCHoklch(52.1% 0.217 330.2)
XYZxyz(23.1599, 11.9153, 35.2555)
Luminance0.1191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A81FA2 #1FA825
analogous
#6A1FA8 #A81FA2 #A81F5E
triadic
#A81FA2 #A2A81F #1FA2A8
tetradic
#A81FA2 #A86A1F #1FA825 #1F5EA8
square
#A81FA2 #A86A1F #1FA825 #1F5EA8
split-complementary
#A81FA2 #5EA81F #1FA86A
monochromatic
#410C3E #741570 #A81FA2 #D82CD1 #E260DC

Accessibility & contrast

On white

6.21
#A81FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#A81FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A81FA2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A81FA2#FFFFFF#000000##FFFFFF
##A81FA21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#4D679F
Tritanopia (blue-blind)
#AF3562
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a81fa2;
/* rgb */ color: rgb(168, 31, 162);
/* oklch */ color: oklch(52.1% 0.217 330.2);
Tailwind
colors: {
  custom: {
    50: '#c66ebe',
    500: '#a81fa2',
    950: '#000000',
  },
}
SCSS
$custom: #a81fa2;
$custom-light: #c66ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#a81fa2",
  "rgb": {
    "r": 168,
    "g": 31,
    "b": 162
  },
  "hsl": {
    "h": 302.628,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.52097,
    "c": 0.21652,
    "h": 330.2
  },
  "luminance": 0.11913
}

Semantic roles & 50–950 ramp

primary
#A81FA2
secondary
#5DC661
accent
#EC443C
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A81FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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