#AF22A5#AF22A5

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

Color values

HEX#AF22A5
RGBrgb(175, 34, 165)
HSLhsl(304, 67%, 41%)
HSVhsv(304, 81%, 69%)
CMYKcmyk(0%, 80.6%, 5.7%, 31.4%)
CIE-LABlab(42.73, 67.40, -38.03)
CIE-LCHlch(42.73, 77.39, 330.57°)
OKLaboklab(53.55% 0.1928 -0.1049)
OKLCHoklch(53.55% 0.219 331.4)
XYZxyz(25.0428, 12.9767, 36.7758)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22A5 #22AF2C
analogous
#7222AF #AF22A5 #AF225E
triadic
#AF22A5 #A5AF22 #22A5AF
tetradic
#AF22A5 #AF7222 #22AF2C #225EAF
square
#AF22A5 #AF7222 #22AF2C #225EAF
split-complementary
#AF22A5 #5EAF22 #22AF72
monochromatic
#490E44 #7C1875 #AF22A5 #D836CD #E269D9

Accessibility & contrast

On white

5.84
#AF22A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF22A5
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22A5#FFFFFF#000000##FFFFFF
##AF22A51.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1059A8
Deuteranopia (green-blind)
#536CA2
Tritanopia (blue-blind)
#B63664
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af22a5;
/* rgb */ color: rgb(175, 34, 165);
/* oklch */ color: oklch(53.6% 0.219 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb70c0',
    500: '#af22a5',
    950: '#000000',
  },
}
SCSS
$custom: #af22a5;
$custom-light: #cb70c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af22a5",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 304.255,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53553,
    "c": 0.21947,
    "h": 331.4
  },
  "luminance": 0.12975
}

Semantic roles & 50–950 ramp

primary
#AF22A5
secondary
#65C86C
accent
#EA4A3D
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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