#A228A7#A228A7

#A228A7 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.1% C 0.210 H 326.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#A228A7
RGBrgb(162, 40, 167)
HSLhsl(298, 61%, 41%)
HSVhsv(298, 76%, 65%)
CMYKcmyk(3%, 76%, 0%, 34.5%)
CIE-LABlab(41.20, 63.36, -41.78)
CIE-LCHlch(41.20, 75.90, 326.60°)
OKLaboklab(52.08% 0.1744 -0.1162)
OKLCHoklch(52.08% 0.21 326.3)
XYZxyz(22.6337, 11.9906, 37.6740)
Luminance0.1199 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A228A7 #2DA728
analogous
#6228A7 #A228A7 #A7286C
triadic
#A228A7 #A7A228 #28A7A2
tetradic
#A228A7 #A76228 #2DA728 #286CA7
square
#A228A7 #A76228 #2DA728 #286CA7
split-complementary
#A228A7 #6CA728 #28A762
monochromatic
#421044 #721C76 #A228A7 #CA3CD0 #D86DDC

Accessibility & contrast

On white

6.18
#A228A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#A228A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A228A7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A228A7#FFFFFF#000000##FFFFFF
##A228A71.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AA
Deuteranopia (green-blind)
#4766A4
Tritanopia (blue-blind)
#A63E66
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a228a7;
/* rgb */ color: rgb(162, 40, 167);
/* oklch */ color: oklch(52.1% 0.210 326.3);
Tailwind
colors: {
  custom: {
    50: '#c170c2',
    500: '#a228a7',
    950: '#000000',
  },
}
SCSS
$custom: #a228a7;
$custom-light: #c170c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a228a7",
  "rgb": {
    "r": 162,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 297.638,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.5208,
    "c": 0.20951,
    "h": 326.3
  },
  "luminance": 0.11989
}

Semantic roles & 50–950 ramp

primary
#A228A7
secondary
#6CC368
accent
#E4434A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #A228A7

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

Preview Lab → · Contrast checker → · Palette generator →

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