#A22FA2#A22FA2

#A22FA2 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.4% C 0.198 H 328.0°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#A22FA2
RGBrgb(162, 47, 162)
HSLhsl(300, 55%, 41%)
HSVhsv(300, 71%, 64%)
CMYKcmyk(0%, 71%, 0%, 36.5%)
CIE-LABlab(41.73, 60.19, -37.96)
CIE-LCHlch(41.73, 71.16, 327.76°)
OKLaboklab(52.36% 0.1679 -0.1051)
OKLCHoklch(52.36% 0.198 328)
XYZxyz(22.4381, 12.3246, 35.3725)
Luminance0.1232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22FA2 #2FA22F
analogous
#682FA2 #A22FA2 #A22F68
triadic
#A22FA2 #A2A22F #2FA2A2
tetradic
#A22FA2 #A2682F #2FA22F #2F68A2
square
#A22FA2 #A2682F #2FA22F #2F68A2
split-complementary
#A22FA2 #68A22F #2FA268
monochromatic
#431343 #732173 #A22FA2 #C945C9 #D775D7

Accessibility & contrast

On white

6.06
#A22FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#A22FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22FA2
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22FA2#FFFFFF#000000##FFFFFF
##A22FA21.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B59A5
Deuteranopia (green-blind)
#4D689F
Tritanopia (blue-blind)
#A74065
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a22fa2;
/* rgb */ color: rgb(162, 47, 162);
/* oklch */ color: oklch(52.4% 0.198 328.0);
Tailwind
colors: {
  custom: {
    50: '#c173be',
    500: '#a22fa2',
    950: '#000000',
  },
}
SCSS
$custom: #a22fa2;
$custom-light: #c173be;
$custom-dark: #000000;
JSON
{
  "hex": "#a22fa2",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 300,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52364,
    "c": 0.19807,
    "h": 328
  },
  "luminance": 0.12323
}

Semantic roles & 50–950 ramp

primary
#A22FA2
secondary
#6EBF6E
accent
#DE4949
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A22FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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