#AF21BD#AF21BD

#AF21BD is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.9% C 0.238 H 323.9°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AF21BD
RGBrgb(175, 33, 189)
HSLhsl(295, 70%, 44%)
HSVhsv(295, 83%, 74%)
CMYKcmyk(7.4%, 82.5%, 0%, 25.9%)
CIE-LABlab(44.06, 71.46, -50.10)
CIE-LCHlch(44.06, 87.28, 324.97°)
OKLaboklab(54.95% 0.1921 -0.1401)
OKLCHoklch(54.95% 0.238 323.9)
XYZxyz(27.4076, 13.8776, 49.3693)
Luminance0.1388 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF21BD #2FBD21
analogous
#6121BD #AF21BD #BD217D
triadic
#AF21BD #BDAF21 #21BDAF
tetradic
#AF21BD #BD6121 #2FBD21 #217DBD
square
#AF21BD #BD6121 #2FBD21 #217DBD
split-complementary
#AF21BD #7DBD21 #21BD61
monochromatic
#4F0F55 #7F1889 #AF21BD #CF3EDD #DC72E6

Accessibility & contrast

On white

5.56
#AF21BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AF21BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF21BD
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF21BD#FFFFFF#000000##FFFFFF
##AF21BD1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#426EBA
Tritanopia (blue-blind)
#B24372
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af21bd;
/* rgb */ color: rgb(175, 33, 189);
/* oklch */ color: oklch(54.9% 0.238 323.9);
Tailwind
colors: {
  custom: {
    50: '#cb70d1',
    500: '#af21bd',
    950: '#000000',
  },
}
SCSS
$custom: #af21bd;
$custom-light: #cb70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af21bd",
  "rgb": {
    "r": 175,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 294.615,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54948,
    "c": 0.23772,
    "h": 323.9
  },
  "luminance": 0.13876
}

Semantic roles & 50–950 ramp

primary
#AF21BD
secondary
#75CD6D
accent
#ED3B4B
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140914
muted
#837B82

Preview Lab

Preview with #AF21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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