#AF22D3#AF22D3

#AF22D3 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.5% C 0.254 H 317.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF22D3
RGBrgb(175, 34, 211)
HSLhsl(288, 72%, 48%)
HSVhsv(288, 84%, 83%)
CMYKcmyk(17.1%, 83.9%, 0%, 17.3%)
CIE-LABlab(45.58, 75.02, -60.41)
CIE-LCHlch(45.58, 96.32, 321.16°)
OKLaboklab(56.48% 0.1881 -0.1703)
OKLCHoklch(56.48% 0.254 317.8)
XYZxyz(30.0074, 14.9626, 62.9228)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22D3 #46D322
analogous
#5722D3 #AF22D3 #D3229E
triadic
#AF22D3 #D3AF22 #22D3AF
tetradic
#AF22D3 #D35722 #46D322 #229ED3
square
#AF22D3 #D35722 #46D322 #229ED3
split-complementary
#AF22D3 #9ED322 #22D357
monochromatic
#58116A #831A9E #AF22D3 #C54FE3 #D684EB

Accessibility & contrast

On white

5.26
#AF22D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF22D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22D3
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22D3#FFFFFF#000000##FFFFFF
##AF22D31.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#2A70CF
Tritanopia (blue-blind)
#AD4F7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af22d3;
/* rgb */ color: rgb(175, 34, 211);
/* oklch */ color: oklch(56.5% 0.254 317.8);
Tailwind
colors: {
  custom: {
    50: '#cc72e1',
    500: '#af22d3',
    950: '#000000',
  },
}
SCSS
$custom: #af22d3;
$custom-light: #cc72e1;
$custom-dark: #000000;
JSON
{
  "hex": "#af22d3",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 211
  },
  "hsl": {
    "h": 287.797,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56478,
    "c": 0.25373,
    "h": 317.8
  },
  "luminance": 0.14961
}

Semantic roles & 50–950 ramp

primary
#AF22D3
secondary
#8ED47D
accent
#EF395E
background
#FDF7FD
surface
#FAEDFB
border
#D3C8D4
text
#140915
muted
#837B83

Preview Lab

Preview with #AF22D3

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

Preview Lab → · Contrast checker → · Palette generator →

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