#A22FA7#A22FA7

#A22FA7 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.7% C 0.202 H 326.2°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#A22FA7
RGBrgb(162, 47, 167)
HSLhsl(298, 56%, 42%)
HSVhsv(298, 72%, 65%)
CMYKcmyk(3%, 71.9%, 0%, 34.5%)
CIE-LABlab(42.01, 61.05, -40.50)
CIE-LCHlch(42.01, 73.26, 326.44°)
OKLaboklab(52.66% 0.1679 -0.1125)
OKLCHoklch(52.66% 0.202 326.2)
XYZxyz(22.8914, 12.5060, 37.7599)
Luminance0.1250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22FA7 #34A72F
analogous
#662FA7 #A22FA7 #A72F70
triadic
#A22FA7 #A7A22F #2FA7A2
tetradic
#A22FA7 #A7662F #34A72F #2F70A7
square
#A22FA7 #A7662F #34A72F #2F70A7
split-complementary
#A22FA7 #70A72F #2FA766
monochromatic
#451447 #742277 #A22FA7 #C648CB #D578D9

Accessibility & contrast

On white

6.00
#A22FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#A22FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22FA7
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22FA7#FFFFFF#000000##FFFFFF
##A22FA71.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115AAA
Deuteranopia (green-blind)
#4A68A4
Tritanopia (blue-blind)
#A64268
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a22fa7;
/* rgb */ color: rgb(162, 47, 167);
/* oklch */ color: oklch(52.7% 0.202 326.2);
Tailwind
colors: {
  custom: {
    50: '#c173c2',
    500: '#a22fa7',
    950: '#000000',
  },
}
SCSS
$custom: #a22fa7;
$custom-light: #c173c2;
$custom-dark: #000000;
JSON
{
  "hex": "#a22fa7",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 297.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52657,
    "c": 0.20209,
    "h": 326.2
  },
  "luminance": 0.12504
}

Semantic roles & 50–950 ramp

primary
#A22FA7
secondary
#74C171
accent
#DF484F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A22FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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