#AF22AD#AF22AD

#AF22AD is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.225 H 328.8°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF22AD
RGBrgb(175, 34, 173)
HSLhsl(301, 67%, 41%)
HSVhsv(301, 81%, 69%)
CMYKcmyk(0%, 80.6%, 1.1%, 31.4%)
CIE-LABlab(43.18, 68.64, -42.08)
CIE-LCHlch(43.18, 80.51, 328.49°)
OKLaboklab(54.02% 0.1926 -0.1166)
OKLCHoklch(54.02% 0.225 328.8)
XYZxyz(25.7938, 13.2771, 40.7313)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22AD #22AF24
analogous
#6A22AF #AF22AD #AF2266
triadic
#AF22AD #ADAF22 #22ADAF
tetradic
#AF22AD #AF6A22 #22AF24 #2266AF
square
#AF22AD #AF6A22 #22AF24 #2266AF
split-complementary
#AF22AD #66AF22 #22AF6A
monochromatic
#490E48 #7C187A #AF22AD #D836D6 #E269E0

Accessibility & contrast

On white

5.75
#AF22AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF22AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22AD
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22AD#FFFFFF#000000##FFFFFF
##AF22AD1.005.753.665.75
#FFFFFF5.751.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB1
Deuteranopia (green-blind)
#4E6CAA
Tritanopia (blue-blind)
#B53A69
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af22ad;
/* rgb */ color: rgb(175, 34, 173);
/* oklch */ color: oklch(54.0% 0.225 328.8);
Tailwind
colors: {
  custom: {
    50: '#cb70c6',
    500: '#af22ad',
    950: '#000000',
  },
}
SCSS
$custom: #af22ad;
$custom-light: #cb70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af22ad",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 173
  },
  "hsl": {
    "h": 300.851,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54018,
    "c": 0.22518,
    "h": 328.8
  },
  "luminance": 0.13275
}

Semantic roles & 50–950 ramp

primary
#AF22AD
secondary
#65C866
accent
#EA403D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF22AD

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

Preview Lab → · Contrast checker → · Palette generator →

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