#A228A0#A228A0

#A228A0 is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.204 H 328.8°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#A228A0
RGBrgb(162, 40, 160)
HSLhsl(301, 60%, 40%)
HSVhsv(301, 75%, 64%)
CMYKcmyk(0%, 75.3%, 1.2%, 36.5%)
CIE-LABlab(40.80, 62.20, -38.23)
CIE-LCHlch(40.80, 73.01, 328.42°)
OKLaboklab(51.66% 0.1745 -0.1058)
OKLCHoklch(51.66% 0.204 328.8)
XYZxyz(22.0040, 11.7387, 34.3577)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A0 #28A22A
analogous
#6728A2 #A228A0 #A22863
triadic
#A228A0 #A0A228 #28A0A2
tetradic
#A228A0 #A26728 #28A22A #2863A2
square
#A228A0 #A26728 #28A22A #2863A2
split-complementary
#A228A0 #63A228 #28A267
monochromatic
#40103F #711C70 #A228A0 #CE39CC #DA6AD8

Accessibility & contrast

On white

6.27
#A228A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A228A0
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228A0#FFFFFF#000000##FFFFFF
##A228A01.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1056A3
Deuteranopia (green-blind)
#4B669D
Tritanopia (blue-blind)
#A83B62
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #a228a0;
/* rgb */ color: rgb(162, 40, 160);
/* oklch */ color: oklch(51.7% 0.204 328.8);
Tailwind
colors: {
  custom: {
    50: '#c170bc',
    500: '#a228a0',
    950: '#000000',
  },
}
SCSS
$custom: #a228a0;
$custom-light: #c170bc;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a0",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 300.984,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51663,
    "c": 0.2041,
    "h": 328.8
  },
  "luminance": 0.11737
}

Semantic roles & 50–950 ramp

primary
#A228A0
secondary
#65C167
accent
#E44744
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A0

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

Preview Lab → · Contrast checker → · Palette generator →

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