#A227A5#A227A5

#A227A5 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.9% C 0.209 H 327.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#A227A5
RGBrgb(162, 39, 165)
HSLhsl(299, 62%, 40%)
HSVhsv(299, 76%, 65%)
CMYKcmyk(1.8%, 76.4%, 0%, 35.3%)
CIE-LABlab(40.98, 63.33, -40.95)
CIE-LCHlch(40.98, 75.41, 327.12°)
OKLaboklab(51.88% 0.1753 -0.1137)
OKLCHoklch(51.88% 0.209 327)
XYZxyz(22.4170, 11.8506, 36.6967)
Luminance0.1185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227A5 #2AA527
analogous
#6327A5 #A227A5 #A52769
triadic
#A227A5 #A5A227 #27A5A2
tetradic
#A227A5 #A56327 #2AA527 #2769A5
square
#A227A5 #A56327 #2AA527 #2769A5
split-complementary
#A227A5 #69A527 #27A563
monochromatic
#411042 #711B74 #A227A5 #CD39D0 #D96ADC

Accessibility & contrast

On white

6.23
#A227A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#A227A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227A5
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227A5#FFFFFF#000000##FFFFFF
##A227A51.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#4866A2
Tritanopia (blue-blind)
#A73D65
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a227a5;
/* rgb */ color: rgb(162, 39, 165);
/* oklch */ color: oklch(51.9% 0.209 327.0);
Tailwind
colors: {
  custom: {
    50: '#c170c0',
    500: '#a227a5',
    950: '#000000',
  },
}
SCSS
$custom: #a227a5;
$custom-light: #c170c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a227a5",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 298.571,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.51883,
    "c": 0.20894,
    "h": 327
  },
  "luminance": 0.11849
}

Semantic roles & 50–950 ramp

primary
#A227A5
secondary
#68C266
accent
#E54347
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A227A5

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

Preview Lab → · Contrast checker → · Palette generator →

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