#AF22A6#AF22A6

#AF22A6 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.220 H 331.1°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#AF22A6
RGBrgb(175, 34, 166)
HSLhsl(304, 67%, 41%)
HSVhsv(304, 81%, 69%)
CMYKcmyk(0%, 80.6%, 5.1%, 31.4%)
CIE-LABlab(42.78, 67.56, -38.54)
CIE-LCHlch(42.78, 77.77, 330.30°)
OKLaboklab(53.61% 0.1928 -0.1064)
OKLCHoklch(53.61% 0.22 331.1)
XYZxyz(25.1342, 13.0133, 37.2571)
Luminance0.1301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22A6 #22AF2B
analogous
#7122AF #AF22A6 #AF225F
triadic
#AF22A6 #A6AF22 #22A6AF
tetradic
#AF22A6 #AF7122 #22AF2B #225FAF
square
#AF22A6 #AF7122 #22AF2B #225FAF
split-complementary
#AF22A6 #5FAF22 #22AF71
monochromatic
#490E45 #7C1875 #AF22A6 #D836CE #E269DA

Accessibility & contrast

On white

5.83
#AF22A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AF22A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22A6
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22A6#FFFFFF#000000##FFFFFF
##AF22A61.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D59A9
Deuteranopia (green-blind)
#526CA3
Tritanopia (blue-blind)
#B63765
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af22a6;
/* rgb */ color: rgb(175, 34, 166);
/* oklch */ color: oklch(53.6% 0.220 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb70c1',
    500: '#af22a6',
    950: '#000000',
  },
}
SCSS
$custom: #af22a6;
$custom-light: #cb70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af22a6",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 303.83,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5361,
    "c": 0.22017,
    "h": 331.1
  },
  "luminance": 0.13011
}

Semantic roles & 50–950 ramp

primary
#AF22A6
secondary
#65C86B
accent
#EA483D
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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