#A228AA#A228AA

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

Color values

HEX#A228AA
RGBrgb(162, 40, 170)
HSLhsl(296, 62%, 41%)
HSVhsv(296, 76%, 67%)
CMYKcmyk(4.7%, 76.5%, 0%, 33.3%)
CIE-LABlab(41.38, 63.87, -43.29)
CIE-LCHlch(41.38, 77.16, 325.87°)
OKLaboklab(52.26% 0.1742 -0.1206)
OKLCHoklch(52.26% 0.212 325.3)
XYZxyz(22.9143, 12.1028, 39.1516)
Luminance0.1210 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228AA #30AA28
analogous
#6128AA #A228AA #AA2871
triadic
#A228AA #AAA228 #28AAA2
tetradic
#A228AA #AA6128 #30AA28 #2871AA
square
#A228AA #AA6128 #30AA28 #2871AA
split-complementary
#A228AA #71AA28 #28AA61
monochromatic
#441147 #731C78 #A228AA #C83ED2 #D66FDD

Accessibility & contrast

On white

6.14
#A228AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#A228AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228AA
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228AA#FFFFFF#000000##FFFFFF
##A228AA1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#4567A7
Tritanopia (blue-blind)
#A64068
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a228aa;
/* rgb */ color: rgb(162, 40, 170);
/* oklch */ color: oklch(52.3% 0.212 325.3);
Tailwind
colors: {
  custom: {
    50: '#c170c4',
    500: '#a228aa',
    950: '#000000',
  },
}
SCSS
$custom: #a228aa;
$custom-light: #c170c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a228aa",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 296.308,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52264,
    "c": 0.21186,
    "h": 325.3
  },
  "luminance": 0.12101
}

Semantic roles & 50–950 ramp

primary
#A228AA
secondary
#6FC46A
accent
#E5434D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #A228AA

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

Preview Lab → · Contrast checker → · Palette generator →

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