#A227AE#A227AE

#A227AE is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.4% C 0.216 H 324.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#A227AE
RGBrgb(162, 39, 174)
HSLhsl(295, 63%, 42%)
HSVhsv(295, 78%, 68%)
CMYKcmyk(6.9%, 77.6%, 0%, 31.8%)
CIE-LABlab(41.52, 64.86, -45.45)
CIE-LCHlch(41.52, 79.19, 324.98°)
OKLaboklab(52.44% 0.1748 -0.1269)
OKLCHoklch(52.44% 0.216 324)
XYZxyz(23.2651, 12.1899, 41.1637)
Luminance0.1219 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A227AE #33AE27
analogous
#5F27AE #A227AE #AE2777
triadic
#A227AE #AEA227 #27AEA2
tetradic
#A227AE #AE5F27 #33AE27 #2777AE
square
#A227AE #AE5F27 #33AE27 #2777AE
split-complementary
#A227AE #77AE27 #27AE5F
monochromatic
#45114A #731C7C #A227AE #C73ED4 #D570DF

Accessibility & contrast

On white

6.11
#A227AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#A227AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A227AE
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A227AE#FFFFFF#000000##FFFFFF
##A227AE1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#4267AB
Tritanopia (blue-blind)
#A5416A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a227ae;
/* rgb */ color: rgb(162, 39, 174);
/* oklch */ color: oklch(52.4% 0.216 324.0);
Tailwind
colors: {
  custom: {
    50: '#c270c7',
    500: '#a227ae',
    950: '#000000',
  },
}
SCSS
$custom: #a227ae;
$custom-light: #c270c7;
$custom-dark: #000000;
JSON
{
  "hex": "#a227ae",
  "rgb": {
    "r": 162,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 294.667,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52439,
    "c": 0.21597,
    "h": 324
  },
  "luminance": 0.12188
}

Semantic roles & 50–950 ramp

primary
#A227AE
secondary
#73C66B
accent
#E64150
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A227AE

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

Preview Lab → · Contrast checker → · Palette generator →

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