#AF22A3#AF22A3

#AF22A3 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.4% C 0.218 H 332.1°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#AF22A3
RGBrgb(175, 34, 163)
HSLhsl(305, 67%, 41%)
HSVhsv(305, 81%, 69%)
CMYKcmyk(0%, 80.6%, 6.9%, 31.4%)
CIE-LABlab(42.62, 67.10, -37.00)
CIE-LCHlch(42.62, 76.63, 331.12°)
OKLaboklab(53.44% 0.1928 -0.1019)
OKLCHoklch(53.44% 0.218 332.1)
XYZxyz(24.8622, 12.9045, 35.8246)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22A3 #22AF2E
analogous
#7422AF #AF22A3 #AF225D
triadic
#AF22A3 #A3AF22 #22A3AF
tetradic
#AF22A3 #AF7422 #22AF2E #225DAF
square
#AF22A3 #AF7422 #22AF2E #225DAF
split-complementary
#AF22A3 #5DAF22 #22AF74
monochromatic
#490E44 #7C1873 #AF22A3 #D836CA #E269D8

Accessibility & contrast

On white

5.87
#AF22A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AF22A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22A3
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22A3#FFFFFF#000000##FFFFFF
##AF22A31.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1458A6
Deuteranopia (green-blind)
#546BA0
Tritanopia (blue-blind)
#B73563
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af22a3;
/* rgb */ color: rgb(175, 34, 163);
/* oklch */ color: oklch(53.4% 0.218 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb70bf',
    500: '#af22a3',
    950: '#000000',
  },
}
SCSS
$custom: #af22a3;
$custom-light: #cb70bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af22a3",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 305.106,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5344,
    "c": 0.21806,
    "h": 332.1
  },
  "luminance": 0.12902
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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