#AF22AC#AF22AC

#AF22AC is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.224 H 329.1°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AF22AC
RGBrgb(175, 34, 172)
HSLhsl(301, 67%, 41%)
HSVhsv(301, 81%, 69%)
CMYKcmyk(0%, 80.6%, 1.7%, 31.4%)
CIE-LABlab(43.12, 68.48, -41.57)
CIE-LCHlch(43.12, 80.11, 328.74°)
OKLaboklab(53.96% 0.1927 -0.1152)
OKLCHoklch(53.96% 0.224 329.1)
XYZxyz(25.6974, 13.2386, 40.2236)
Luminance0.1324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22AC #22AF25
analogous
#6B22AF #AF22AC #AF2265
triadic
#AF22AC #ACAF22 #22ACAF
tetradic
#AF22AC #AF6B22 #22AF25 #2265AF
square
#AF22AC #AF6B22 #22AF25 #2265AF
split-complementary
#AF22AC #65AF22 #22AF6B
monochromatic
#490E47 #7C187A #AF22AC #D836D5 #E269DF

Accessibility & contrast

On white

5.76
#AF22AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF22AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22AC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22AC#FFFFFF#000000##FFFFFF
##AF22AC1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#4F6CA9
Tritanopia (blue-blind)
#B53A68
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af22ac;
/* rgb */ color: rgb(175, 34, 172);
/* oklch */ color: oklch(54.0% 0.224 329.1);
Tailwind
colors: {
  custom: {
    50: '#cb70c5',
    500: '#af22ac',
    950: '#000000',
  },
}
SCSS
$custom: #af22ac;
$custom-light: #cb70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af22ac",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 301.277,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53959,
    "c": 0.22446,
    "h": 329.1
  },
  "luminance": 0.13237
}

Semantic roles & 50–950 ramp

primary
#AF22AC
secondary
#65C867
accent
#EA413D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF22AC

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

Preview Lab → · Contrast checker → · Palette generator →

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