#A22F9B#A22F9B

#A22F9B is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.0% C 0.193 H 330.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#A22F9B
RGBrgb(162, 47, 155)
HSLhsl(304, 55%, 41%)
HSVhsv(304, 71%, 64%)
CMYKcmyk(0%, 71%, 4.3%, 36.5%)
CIE-LABlab(41.35, 59.03, -34.35)
CIE-LCHlch(41.35, 68.30, 329.80°)
OKLaboklab(51.97% 0.1677 -0.0947)
OKLCHoklch(51.97% 0.193 330.6)
XYZxyz(21.8331, 12.0826, 32.1862)
Luminance0.1208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A22F9B #2FA236
analogous
#6F2FA2 #A22F9B #A22F61
triadic
#A22F9B #9BA22F #2F9BA2
tetradic
#A22F9B #A26F2F #2FA236 #2F61A2
square
#A22F9B #A26F2F #2FA236 #2F61A2
split-complementary
#A22F9B #61A22F #2FA26F
monochromatic
#431340 #73216E #A22F9B #C945C1 #D775D1

Accessibility & contrast

On white

6.15
#A22F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#A22F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A22F9B
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A22F9B#FFFFFF#000000##FFFFFF
##A22F9B1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24579E
Deuteranopia (green-blind)
#516798
Tritanopia (blue-blind)
#A83D62
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #a22f9b;
/* rgb */ color: rgb(162, 47, 155);
/* oklch */ color: oklch(52.0% 0.193 330.6);
Tailwind
colors: {
  custom: {
    50: '#c172b9',
    500: '#a22f9b',
    950: '#000000',
  },
}
SCSS
$custom: #a22f9b;
$custom-light: #c172b9;
$custom-dark: #000000;
JSON
{
  "hex": "#a22f9b",
  "rgb": {
    "r": 162,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 303.652,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.51968,
    "c": 0.19256,
    "h": 330.6
  },
  "luminance": 0.12081
}

Semantic roles & 50–950 ramp

primary
#A22F9B
secondary
#6EBF73
accent
#DE5349
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A22F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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