#A22EC4#A22EC4

#A22EC4 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.227 H 317.1°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#A22EC4
RGBrgb(162, 46, 196)
HSLhsl(286, 62%, 47%)
HSVhsv(286, 77%, 77%)
CMYKcmyk(17.3%, 76.5%, 0%, 23.1%)
CIE-LABlab(43.69, 66.64, -54.90)
CIE-LCHlch(43.69, 86.34, 320.52°)
OKLaboklab(54.42% 0.1666 -0.1546)
OKLCHoklch(54.42% 0.227 317.1)
XYZxyz(25.8396, 13.6220, 53.4821)
Luminance0.1362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22EC4 #50C42E
analogous
#572EC4 #A22EC4 #C42E9B
triadic
#A22EC4 #C4A22E #2EC4A2
tetradic
#A22EC4 #C4572E #50C42E #2E9BC4
square
#A22EC4 #C4572E #50C42E #2E9BC4
split-complementary
#A22EC4 #9BC42E #2EC457
monochromatic
#501761 #792292 #A22EC4 #BB58D8 #CF89E3

Accessibility & contrast

On white

5.64
#A22EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#A22EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22EC4
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22EC4#FFFFFF#000000##FFFFFF
##A22EC41.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#316BC1
Tritanopia (blue-blind)
#A04F78
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a22ec4;
/* rgb */ color: rgb(162, 46, 196);
/* oklch */ color: oklch(54.4% 0.227 317.1);
Tailwind
colors: {
  custom: {
    50: '#c274d7',
    500: '#a22ec4',
    950: '#000000',
  },
}
SCSS
$custom: #a22ec4;
$custom-light: #c274d7;
$custom-dark: #000000;
JSON
{
  "hex": "#a22ec4",
  "rgb": {
    "r": 162,
    "g": 46,
    "b": 196
  },
  "hsl": {
    "h": 286.4,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54424,
    "c": 0.22722,
    "h": 317.1
  },
  "luminance": 0.13621
}

Semantic roles & 50–950 ramp

primary
#A22EC4
secondary
#92CD81
accent
#E54368
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #A22EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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