#A228AB#A228AB

#A228AB is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.3% C 0.213 H 325.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#A228AB
RGBrgb(162, 40, 171)
HSLhsl(296, 62%, 41%)
HSVhsv(296, 77%, 67%)
CMYKcmyk(5.3%, 76.6%, 0%, 32.9%)
CIE-LABlab(41.44, 64.04, -43.79)
CIE-LCHlch(41.44, 77.58, 325.63°)
OKLaboklab(52.33% 0.1742 -0.122)
OKLCHoklch(52.33% 0.213 325)
XYZxyz(23.0092, 12.1408, 39.6517)
Luminance0.1214 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228AB #31AB28
analogous
#6128AB #A228AB #AB2873
triadic
#A228AB #ABA228 #28ABA2
tetradic
#A228AB #AB6128 #31AB28 #2873AB
square
#A228AB #AB6128 #31AB28 #2873AB
split-complementary
#A228AB #73AB28 #28AB61
monochromatic
#441148 #731C79 #A228AB #C83ED2 #D670DE

Accessibility & contrast

On white

6.13
#A228AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#A228AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228AB
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228AB#FFFFFF#000000##FFFFFF
##A228AB1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#4467A8
Tritanopia (blue-blind)
#A64069
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a228ab;
/* rgb */ color: rgb(162, 40, 171);
/* oklch */ color: oklch(52.3% 0.213 325.0);
Tailwind
colors: {
  custom: {
    50: '#c170c4',
    500: '#a228ab',
    950: '#000000',
  },
}
SCSS
$custom: #a228ab;
$custom-light: #c170c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a228ab",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 295.878,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52326,
    "c": 0.21264,
    "h": 325
  },
  "luminance": 0.12139
}

Semantic roles & 50–950 ramp

primary
#A228AB
secondary
#71C46A
accent
#E5434E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A228AB

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

Preview Lab → · Contrast checker → · Palette generator →

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