#AF22AA#AF22AA

#AF22AA is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.223 H 329.8°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF22AA
RGBrgb(175, 34, 170)
HSLhsl(302, 67%, 41%)
HSVhsv(302, 81%, 69%)
CMYKcmyk(0%, 80.6%, 2.9%, 31.4%)
CIE-LABlab(43.01, 68.17, -40.57)
CIE-LCHlch(43.01, 79.33, 329.24°)
OKLaboklab(53.84% 0.1927 -0.1122)
OKLCHoklch(53.84% 0.223 329.8)
XYZxyz(25.5068, 13.1623, 39.2196)
Luminance0.1316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22AA #22AF27
analogous
#6D22AF #AF22AA #AF2263
triadic
#AF22AA #AAAF22 #22AAAF
tetradic
#AF22AA #AF6D22 #22AF27 #2263AF
square
#AF22AA #AF6D22 #22AF27 #2263AF
split-complementary
#AF22AA #63AF22 #22AF6D
monochromatic
#490E46 #7C1878 #AF22AA #D836D2 #E269DE

Accessibility & contrast

On white

5.78
#AF22AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF22AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22AA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22AA#FFFFFF#000000##FFFFFF
##AF22AA1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAD
Deuteranopia (green-blind)
#506CA7
Tritanopia (blue-blind)
#B63967
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af22aa;
/* rgb */ color: rgb(175, 34, 170);
/* oklch */ color: oklch(53.8% 0.223 329.8);
Tailwind
colors: {
  custom: {
    50: '#cb70c4',
    500: '#af22aa',
    950: '#000000',
  },
}
SCSS
$custom: #af22aa;
$custom-light: #cb70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af22aa",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 170
  },
  "hsl": {
    "h": 302.128,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53841,
    "c": 0.22303,
    "h": 329.8
  },
  "luminance": 0.1316
}

Semantic roles & 50–950 ramp

primary
#AF22AA
secondary
#65C869
accent
#EA443D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF22AA

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

Preview Lab → · Contrast checker → · Palette generator →

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