#A227AA#A227AA

#A227AA is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.2% C 0.213 H 325.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#A227AA
RGBrgb(162, 39, 170)
HSLhsl(296, 63%, 41%)
HSVhsv(296, 77%, 67%)
CMYKcmyk(4.7%, 77.1%, 0%, 33.3%)
CIE-LABlab(41.27, 64.17, -43.46)
CIE-LCHlch(41.27, 77.50, 325.89°)
OKLaboklab(52.19% 0.1751 -0.121)
OKLCHoklch(52.19% 0.213 325.3)
XYZxyz(22.8810, 12.0362, 39.1405)
Luminance0.1203 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227AA #2FAA27
analogous
#6027AA #A227AA #AA2770
triadic
#A227AA #AAA227 #27AAA2
tetradic
#A227AA #AA6027 #2FAA27 #2770AA
square
#A227AA #AA6027 #2FAA27 #2770AA
split-complementary
#A227AA #70AA27 #27AA60
monochromatic
#431046 #731C78 #A227AA #C93CD2 #D76EDE

Accessibility & contrast

On white

6.16
#A227AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#A227AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227AA
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227AA#FFFFFF#000000##FFFFFF
##A227AA1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#4466A7
Tritanopia (blue-blind)
#A63F68
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a227aa;
/* rgb */ color: rgb(162, 39, 170);
/* oklch */ color: oklch(52.2% 0.213 325.3);
Tailwind
colors: {
  custom: {
    50: '#c170c4',
    500: '#a227aa',
    950: '#000000',
  },
}
SCSS
$custom: #a227aa;
$custom-light: #c170c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a227aa",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 296.336,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52189,
    "c": 0.21283,
    "h": 325.3
  },
  "luminance": 0.12035
}

Semantic roles & 50–950 ramp

primary
#A227AA
secondary
#6EC469
accent
#E6424C
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A227AA

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

Preview Lab → · Contrast checker → · Palette generator →

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