#A227A4#A227A4

#A227A4 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.208 H 327.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#A227A4
RGBrgb(162, 39, 164)
HSLhsl(299, 62%, 40%)
HSVhsv(299, 76%, 64%)
CMYKcmyk(1.2%, 76.2%, 0%, 35.7%)
CIE-LABlab(40.92, 63.16, -40.44)
CIE-LCHlch(40.92, 75.00, 327.37°)
OKLaboklab(51.82% 0.1753 -0.1122)
OKLCHoklch(51.82% 0.208 327.4)
XYZxyz(22.3263, 11.8144, 36.2192)
Luminance0.1181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227A4 #29A427
analogous
#6427A4 #A227A4 #A42768
triadic
#A227A4 #A4A227 #27A4A2
tetradic
#A227A4 #A46427 #29A427 #2768A4
square
#A227A4 #A46427 #29A427 #2768A4
split-complementary
#A227A4 #68A427 #27A464
monochromatic
#400F41 #711B73 #A227A4 #CD38D0 #DA6ADC

Accessibility & contrast

On white

6.25
#A227A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#A227A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227A4
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227A4#FFFFFF#000000##FFFFFF
##A227A41.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0156A7
Deuteranopia (green-blind)
#4866A1
Tritanopia (blue-blind)
#A73C64
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a227a4;
/* rgb */ color: rgb(162, 39, 164);
/* oklch */ color: oklch(51.8% 0.208 327.4);
Tailwind
colors: {
  custom: {
    50: '#c170bf',
    500: '#a227a4',
    950: '#000000',
  },
}
SCSS
$custom: #a227a4;
$custom-light: #c170bf;
$custom-dark: #000000;
JSON
{
  "hex": "#a227a4",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 299.04,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51823,
    "c": 0.20817,
    "h": 327.4
  },
  "luminance": 0.11813
}

Semantic roles & 50–950 ramp

primary
#A227A4
secondary
#67C265
accent
#E54346
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A227A4

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

Preview Lab → · Contrast checker → · Palette generator →

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