#AF22A8#AF22A8

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

Color values

HEX#AF22A8
RGBrgb(175, 34, 168)
HSLhsl(303, 67%, 41%)
HSVhsv(303, 81%, 69%)
CMYKcmyk(0%, 80.6%, 4%, 31.4%)
CIE-LABlab(42.89, 67.86, -39.55)
CIE-LCHlch(42.89, 78.55, 329.76°)
OKLaboklab(53.73% 0.1928 -0.1093)
OKLCHoklch(53.73% 0.222 330.4)
XYZxyz(25.3190, 13.0872, 38.2308)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22A8 #22AF29
analogous
#6F22AF #AF22A8 #AF2261
triadic
#AF22A8 #A8AF22 #22A8AF
tetradic
#AF22A8 #AF6F22 #22AF29 #2261AF
square
#AF22A8 #AF6F22 #22AF29 #2261AF
split-complementary
#AF22A8 #61AF22 #22AF6F
monochromatic
#490E46 #7C1877 #AF22A8 #D836D0 #E269DC

Accessibility & contrast

On white

5.81
#AF22A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF22A8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22A8#FFFFFF#000000##FFFFFF
##AF22A81.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0659AB
Deuteranopia (green-blind)
#516CA5
Tritanopia (blue-blind)
#B63866
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af22a8;
/* rgb */ color: rgb(175, 34, 168);
/* oklch */ color: oklch(53.7% 0.222 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb70c2',
    500: '#af22a8',
    950: '#000000',
  },
}
SCSS
$custom: #af22a8;
$custom-light: #cb70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af22a8",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 302.979,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53725,
    "c": 0.22159,
    "h": 330.4
  },
  "luminance": 0.13085
}

Semantic roles & 50–950 ramp

primary
#AF22A8
secondary
#65C86A
accent
#EA463D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #AF22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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