#AF219F#AF219F

#AF219F is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.2% C 0.216 H 333.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AF219F
RGBrgb(175, 33, 159)
HSLhsl(307, 68%, 41%)
HSVhsv(307, 81%, 69%)
CMYKcmyk(0%, 81.1%, 9.1%, 31.4%)
CIE-LABlab(42.32, 66.75, -35.08)
CIE-LCHlch(42.32, 75.41, 332.28°)
OKLaboklab(53.16% 0.1934 -0.0964)
OKLCHoklch(53.16% 0.216 333.5)
XYZxyz(24.4813, 12.7071, 33.9575)
Luminance0.1270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF219F #21AF31
analogous
#7821AF #AF219F #AF2158
triadic
#AF219F #9FAF21 #219FAF
tetradic
#AF219F #AF7821 #21AF31 #2158AF
square
#AF219F #AF7821 #21AF31 #2158AF
split-complementary
#AF219F #58AF21 #21AF78
monochromatic
#480E41 #7C1770 #AF219F #D934C6 #E368D5

Accessibility & contrast

On white

5.93
#AF219F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#AF219F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF219F
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF219F#FFFFFF#000000##FFFFFF
##AF219F1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A57A2
Deuteranopia (green-blind)
#556B9C
Tritanopia (blue-blind)
#B73260
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af219f;
/* rgb */ color: rgb(175, 33, 159);
/* oklch */ color: oklch(53.2% 0.216 333.5);
Tailwind
colors: {
  custom: {
    50: '#cb6fbc',
    500: '#af219f',
    950: '#000000',
  },
}
SCSS
$custom: #af219f;
$custom-light: #cb6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#af219f",
  "rgb": {
    "r": 175,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 306.761,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53156,
    "c": 0.2161,
    "h": 333.5
  },
  "luminance": 0.12705
}

Semantic roles & 50–950 ramp

primary
#AF219F
secondary
#64C86F
accent
#EB503D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #AF219F

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

Preview Lab → · Contrast checker → · Palette generator →

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