#A228A1#A228A1

#A228A1 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.7% C 0.205 H 328.4°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#A228A1
RGBrgb(162, 40, 161)
HSLhsl(300, 60%, 40%)
HSVhsv(300, 75%, 64%)
CMYKcmyk(0%, 75.3%, 0.6%, 36.5%)
CIE-LABlab(40.85, 62.36, -38.74)
CIE-LCHlch(40.85, 73.42, 328.15°)
OKLaboklab(51.72% 0.1745 -0.1073)
OKLCHoklch(51.72% 0.205 328.4)
XYZxyz(22.0919, 11.7738, 34.8203)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A1 #28A229
analogous
#6628A2 #A228A1 #A22864
triadic
#A228A1 #A1A228 #28A1A2
tetradic
#A228A1 #A26628 #28A229 #2864A2
square
#A228A1 #A26628 #28A229 #2864A2
split-complementary
#A228A1 #64A228 #28A266
monochromatic
#40103F #711C70 #A228A1 #CE39CD #DA6AD9

Accessibility & contrast

On white

6.26
#A228A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#A228A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228A1
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228A1#FFFFFF#000000##FFFFFF
##A228A11.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E56A4
Deuteranopia (green-blind)
#4B669E
Tritanopia (blue-blind)
#A73B63
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a228a1;
/* rgb */ color: rgb(162, 40, 161);
/* oklch */ color: oklch(51.7% 0.205 328.4);
Tailwind
colors: {
  custom: {
    50: '#c170bd',
    500: '#a228a1',
    950: '#000000',
  },
}
SCSS
$custom: #a228a1;
$custom-light: #c170bd;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a1",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 300.492,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51721,
    "c": 0.20487,
    "h": 328.4
  },
  "luminance": 0.11772
}

Semantic roles & 50–950 ramp

primary
#A228A1
secondary
#65C166
accent
#E44644
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A1

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

Preview Lab → · Contrast checker → · Palette generator →

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