#A228A4#A228A4

#A228A4 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.207 H 327.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#A228A4
RGBrgb(162, 40, 164)
HSLhsl(299, 61%, 40%)
HSVhsv(299, 76%, 64%)
CMYKcmyk(1.2%, 75.6%, 0%, 35.7%)
CIE-LABlab(41.03, 62.86, -40.27)
CIE-LCHlch(41.03, 74.65, 327.35°)
OKLaboklab(51.9% 0.1744 -0.1118)
OKLCHoklch(51.9% 0.207 327.4)
XYZxyz(22.3596, 11.8809, 36.2303)
Luminance0.1188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A4 #2AA428
analogous
#6428A4 #A228A4 #A42868
triadic
#A228A4 #A4A228 #28A4A2
tetradic
#A228A4 #A46428 #2AA428 #2868A4
square
#A228A4 #A46428 #2AA428 #2868A4
split-complementary
#A228A4 #68A428 #28A464
monochromatic
#411042 #711C73 #A228A4 #CD3ACF #D96BDB

Accessibility & contrast

On white

6.22
#A228A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#A228A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228A4
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228A4#FFFFFF#000000##FFFFFF
##A228A41.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0457A7
Deuteranopia (green-blind)
#4966A1
Tritanopia (blue-blind)
#A73D65
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a228a4;
/* rgb */ color: rgb(162, 40, 164);
/* oklch */ color: oklch(51.9% 0.207 327.4);
Tailwind
colors: {
  custom: {
    50: '#c170bf',
    500: '#a228a4',
    950: '#000000',
  },
}
SCSS
$custom: #a228a4;
$custom-light: #c170bf;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a4",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 299.032,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.51899,
    "c": 0.20718,
    "h": 327.4
  },
  "luminance": 0.11879
}

Semantic roles & 50–950 ramp

primary
#A228A4
secondary
#68C166
accent
#E44446
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A4

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

Preview Lab → · Contrast checker → · Palette generator →

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