#A228AE#A228AE

#A228AE is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.215 H 324.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#A228AE
RGBrgb(162, 40, 174)
HSLhsl(295, 63%, 42%)
HSVhsv(295, 77%, 68%)
CMYKcmyk(6.9%, 77%, 0%, 31.8%)
CIE-LABlab(41.62, 64.55, -45.28)
CIE-LCHlch(41.62, 78.85, 324.95°)
OKLaboklab(52.51% 0.174 -0.1264)
OKLCHoklch(52.51% 0.215 324)
XYZxyz(23.2984, 12.2564, 41.1748)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228AE #34AE28
analogous
#5F28AE #A228AE #AE2877
triadic
#A228AE #AEA228 #28AEA2
tetradic
#A228AE #AE5F28 #34AE28 #2877AE
square
#A228AE #AE5F28 #34AE28 #2877AE
split-complementary
#A228AE #77AE28 #28AE5F
monochromatic
#45114A #741D7C #A228AE #C640D3 #D572DF

Accessibility & contrast

On white

6.09
#A228AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#A228AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228AE
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228AE#FFFFFF#000000##FFFFFF
##A228AE1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a228ae;
/* rgb */ color: rgb(162, 40, 174);
/* oklch */ color: oklch(52.5% 0.215 324.0);
Tailwind
colors: {
  custom: {
    50: '#c170c7',
    500: '#a228ae',
    950: '#000000',
  },
}
SCSS
$custom: #a228ae;
$custom-light: #c170c7;
$custom-dark: #000000;
JSON
{
  "hex": "#a228ae",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 294.627,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52513,
    "c": 0.21501,
    "h": 324
  },
  "luminance": 0.12255
}

Semantic roles & 50–950 ramp

primary
#A228AE
secondary
#74C66C
accent
#E64251
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A228AE

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

Preview Lab → · Contrast checker → · Palette generator →

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