#AF22AB#AF22AB

#AF22AB is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.224 H 329.5°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF22AB
RGBrgb(175, 34, 171)
HSLhsl(302, 67%, 41%)
HSVhsv(302, 81%, 69%)
CMYKcmyk(0%, 80.6%, 2.3%, 31.4%)
CIE-LABlab(43.06, 68.32, -41.07)
CIE-LCHlch(43.06, 79.72, 328.99°)
OKLaboklab(53.9% 0.1927 -0.1137)
OKLCHoklch(53.9% 0.224 329.5)
XYZxyz(25.6017, 13.2003, 39.7197)
Luminance0.1320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22AB #22AF26
analogous
#6C22AF #AF22AB #AF2264
triadic
#AF22AB #ABAF22 #22ABAF
tetradic
#AF22AB #AF6C22 #22AF26 #2264AF
square
#AF22AB #AF6C22 #22AF26 #2264AF
split-complementary
#AF22AB #64AF22 #22AF6C
monochromatic
#490E47 #7C1879 #AF22AB #D836D3 #E269DF

Accessibility & contrast

On white

5.77
#AF22AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF22AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22AB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22AB#FFFFFF#000000##FFFFFF
##AF22AB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#4F6CA8
Tritanopia (blue-blind)
#B53967
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af22ab;
/* rgb */ color: rgb(175, 34, 171);
/* oklch */ color: oklch(53.9% 0.224 329.5);
Tailwind
colors: {
  custom: {
    50: '#cb70c4',
    500: '#af22ab',
    950: '#000000',
  },
}
SCSS
$custom: #af22ab;
$custom-light: #cb70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af22ab",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 171
  },
  "hsl": {
    "h": 301.702,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.539,
    "c": 0.22374,
    "h": 329.5
  },
  "luminance": 0.13198
}

Semantic roles & 50–950 ramp

primary
#AF22AB
secondary
#65C868
accent
#EA423D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF22AB

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

Preview Lab → · Contrast checker → · Palette generator →

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