#AF22A7#AF22A7

#AF22A7 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.221 H 330.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AF22A7
RGBrgb(175, 34, 167)
HSLhsl(303, 67%, 41%)
HSVhsv(303, 81%, 69%)
CMYKcmyk(0%, 80.6%, 4.6%, 31.4%)
CIE-LABlab(42.84, 67.71, -39.05)
CIE-LCHlch(42.84, 78.16, 330.03°)
OKLaboklab(53.67% 0.1928 -0.1078)
OKLCHoklch(53.67% 0.221 330.8)
XYZxyz(25.2262, 13.0501, 37.7420)
Luminance0.1305 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22A7 #22AF2A
analogous
#7022AF #AF22A7 #AF2260
triadic
#AF22A7 #A7AF22 #22A7AF
tetradic
#AF22A7 #AF7022 #22AF2A #2260AF
square
#AF22A7 #AF7022 #22AF2A #2260AF
split-complementary
#AF22A7 #60AF22 #22AF70
monochromatic
#490E45 #7C1876 #AF22A7 #D836CF #E269DB

Accessibility & contrast

On white

5.82
#AF22A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AF22A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22A7
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22A7#FFFFFF#000000##FFFFFF
##AF22A71.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A59AA
Deuteranopia (green-blind)
#516CA4
Tritanopia (blue-blind)
#B63765
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af22a7;
/* rgb */ color: rgb(175, 34, 167);
/* oklch */ color: oklch(53.7% 0.221 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb70c1',
    500: '#af22a7',
    950: '#000000',
  },
}
SCSS
$custom: #af22a7;
$custom-light: #cb70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af22a7",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 303.404,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53668,
    "c": 0.22088,
    "h": 330.8
  },
  "luminance": 0.13048
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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