#A021A7#A021A7

#A021A7 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.3% C 0.215 H 325.7°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#A021A7
RGBrgb(160, 33, 167)
HSLhsl(297, 67%, 39%)
HSVhsv(297, 80%, 65%)
CMYKcmyk(4.2%, 80.2%, 0%, 34.5%)
CIE-LABlab(40.17, 64.96, -43.45)
CIE-LCHlch(40.17, 78.16, 326.22°)
OKLaboklab(51.28% 0.1778 -0.121)
OKLCHoklch(51.28% 0.215 325.7)
XYZxyz(22.0156, 11.3528, 37.5835)
Luminance0.1135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A021A7 #28A721
analogous
#5D21A7 #A021A7 #A7216B
triadic
#A021A7 #A7A021 #21A7A0
tetradic
#A021A7 #A75D21 #28A721 #216BA7
square
#A021A7 #A75D21 #28A721 #216BA7
split-complementary
#A021A7 #6BA721 #21A75D
monochromatic
#3E0D41 #6F1774 #A021A7 #CD2FD6 #D962E0

Accessibility & contrast

On white

6.42
#A021A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#A021A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A021A7
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A021A7#FFFFFF#000000##FFFFFF
##A021A71.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#4264A4
Tritanopia (blue-blind)
#A43B65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a021a7;
/* rgb */ color: rgb(160, 33, 167);
/* oklch */ color: oklch(51.3% 0.215 325.7);
Tailwind
colors: {
  custom: {
    50: '#c06dc2',
    500: '#a021a7',
    950: '#000000',
  },
}
SCSS
$custom: #a021a7;
$custom-light: #c06dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#a021a7",
  "rgb": {
    "r": 160,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 296.866,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.51282,
    "c": 0.21505,
    "h": 325.7
  },
  "luminance": 0.11351
}

Semantic roles & 50–950 ramp

primary
#A021A7
secondary
#64C55F
accent
#EA3E47
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A021A7

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

Preview Lab → · Contrast checker → · Palette generator →

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