#AF21BC#AF21BC

#AF21BC is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.9% C 0.237 H 324.2°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF21BC
RGBrgb(175, 33, 188)
HSLhsl(295, 70%, 43%)
HSVhsv(295, 82%, 74%)
CMYKcmyk(6.9%, 82.4%, 0%, 26.3%)
CIE-LABlab(43.99, 71.30, -49.62)
CIE-LCHlch(43.99, 86.86, 325.17°)
OKLaboklab(54.88% 0.1922 -0.1386)
OKLCHoklch(54.88% 0.237 324.2)
XYZxyz(27.2994, 13.8343, 48.7996)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF21BC #2EBC21
analogous
#6121BC #AF21BC #BC217B
triadic
#AF21BC #BCAF21 #21BCAF
tetradic
#AF21BC #BC6121 #2EBC21 #217BBC
square
#AF21BC #BC6121 #2EBC21 #217BBC
split-complementary
#AF21BC #7BBC21 #21BC61
monochromatic
#4E0F54 #7F1888 #AF21BC #D03DDD #DC71E6

Accessibility & contrast

On white

5.58
#AF21BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AF21BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF21BC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF21BC#FFFFFF#000000##FFFFFF
##AF21BC1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#436DB9
Tritanopia (blue-blind)
#B24271
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af21bc;
/* rgb */ color: rgb(175, 33, 188);
/* oklch */ color: oklch(54.9% 0.237 324.2);
Tailwind
colors: {
  custom: {
    50: '#cb70d1',
    500: '#af21bc',
    950: '#000000',
  },
}
SCSS
$custom: #af21bc;
$custom-light: #cb70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af21bc",
  "rgb": {
    "r": 175,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 294.968,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54884,
    "c": 0.23697,
    "h": 324.2
  },
  "luminance": 0.13833
}

Semantic roles & 50–950 ramp

primary
#AF21BC
secondary
#74CD6C
accent
#ED3B4A
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140914
muted
#837B82

Preview Lab

Preview with #AF21BC

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

Preview Lab → · Contrast checker → · Palette generator →

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