#AF22A9#AF22A9

#AF22A9 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.222 H 330.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF22A9
RGBrgb(175, 34, 169)
HSLhsl(303, 67%, 41%)
HSVhsv(303, 81%, 69%)
CMYKcmyk(0%, 80.6%, 3.4%, 31.4%)
CIE-LABlab(42.95, 68.02, -40.06)
CIE-LCHlch(42.95, 78.94, 329.50°)
OKLaboklab(53.78% 0.1927 -0.1108)
OKLCHoklch(53.78% 0.222 330.1)
XYZxyz(25.4126, 13.1246, 38.7233)
Luminance0.1312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22A9 #22AF28
analogous
#6E22AF #AF22A9 #AF2262
triadic
#AF22A9 #A9AF22 #22A9AF
tetradic
#AF22A9 #AF6E22 #22AF28 #2262AF
square
#AF22A9 #AF6E22 #22AF28 #2262AF
split-complementary
#AF22A9 #62AF22 #22AF6E
monochromatic
#490E46 #7C1878 #AF22A9 #D836D1 #E269DD

Accessibility & contrast

On white

5.79
#AF22A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF22A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22A9
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22A9#FFFFFF#000000##FFFFFF
##AF22A91.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0359AC
Deuteranopia (green-blind)
#506CA6
Tritanopia (blue-blind)
#B63866
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af22a9;
/* rgb */ color: rgb(175, 34, 169);
/* oklch */ color: oklch(53.8% 0.222 330.1);
Tailwind
colors: {
  custom: {
    50: '#cb70c3',
    500: '#af22a9',
    950: '#000000',
  },
}
SCSS
$custom: #af22a9;
$custom-light: #cb70c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af22a9",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 302.553,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53783,
    "c": 0.22231,
    "h": 330.1
  },
  "luminance": 0.13123
}

Semantic roles & 50–950 ramp

primary
#AF22A9
secondary
#65C869
accent
#EA453D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #AF22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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