#AF22A4#AF22A4

#AF22A4 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.219 H 331.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AF22A4
RGBrgb(175, 34, 164)
HSLhsl(305, 67%, 41%)
HSVhsv(305, 81%, 69%)
CMYKcmyk(0%, 80.6%, 6.3%, 31.4%)
CIE-LABlab(42.67, 67.25, -37.52)
CIE-LCHlch(42.67, 77.01, 330.85°)
OKLaboklab(53.5% 0.1928 -0.1034)
OKLCHoklch(53.5% 0.219 331.8)
XYZxyz(24.9521, 12.9405, 36.2984)
Luminance0.1294 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22A4 #22AF2D
analogous
#7322AF #AF22A4 #AF225D
triadic
#AF22A4 #A4AF22 #22A4AF
tetradic
#AF22A4 #AF7322 #22AF2D #225DAF
square
#AF22A4 #AF7322 #22AF2D #225DAF
split-complementary
#AF22A4 #5DAF22 #22AF73
monochromatic
#490E44 #7C1874 #AF22A4 #D836CB #E269D9

Accessibility & contrast

On white

5.85
#AF22A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF22A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22A4
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22A4#FFFFFF#000000##FFFFFF
##AF22A41.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1258A7
Deuteranopia (green-blind)
#536BA1
Tritanopia (blue-blind)
#B63563
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af22a4;
/* rgb */ color: rgb(175, 34, 164);
/* oklch */ color: oklch(53.5% 0.219 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb70bf',
    500: '#af22a4',
    950: '#000000',
  },
}
SCSS
$custom: #af22a4;
$custom-light: #cb70bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af22a4",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 304.681,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53497,
    "c": 0.21876,
    "h": 331.8
  },
  "luminance": 0.12938
}

Semantic roles & 50–950 ramp

primary
#AF22A4
secondary
#65C86D
accent
#EA4B3D
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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