#AF52BC#AF52BC

#AF52BC is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.5% C 0.180 H 322.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF52BC
RGBrgb(175, 82, 188)
HSLhsl(293, 44%, 53%)
HSVhsv(293, 56%, 74%)
CMYKcmyk(6.9%, 56.4%, 0%, 26.3%)
CIE-LABlab(50.43, 53.23, -39.38)
CIE-LCHlch(50.43, 66.22, 323.51°)
OKLaboklab(59.51% 0.1427 -0.1091)
OKLCHoklch(59.51% 0.18 322.6)
XYZxyz(29.7727, 18.7809, 49.6240)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52BC #5FBC52
analogous
#7A52BC #AF52BC #BC5294
triadic
#AF52BC #BCAF52 #52BCAF
tetradic
#AF52BC #BC7A52 #5FBC52 #5294BC
square
#AF52BC #BC7A52 #5FBC52 #5294BC
split-complementary
#AF52BC #94BC52 #52BC7A
monochromatic
#62296A #8B3A97 #AF52BC #C37ECD #D8AADE

Accessibility & contrast

On white

4.42
#AF52BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AF52BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52BC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52BC#FFFFFF#000000##000000
##AF52BC1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4071BF
Deuteranopia (green-blind)
#5F7CB9
Tritanopia (blue-blind)
#B1617F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af52bc;
/* rgb */ color: rgb(175, 82, 188);
/* oklch */ color: oklch(59.5% 0.180 322.6);
Tailwind
colors: {
  custom: {
    50: '#c987d0',
    500: '#af52bc',
    950: '#000000',
  },
}
SCSS
$custom: #af52bc;
$custom-light: #c987d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af52bc",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 292.642,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59512,
    "c": 0.1797,
    "h": 322.6
  },
  "luminance": 0.18779
}

Semantic roles & 50–950 ramp

primary
#AF52BC
secondary
#A4CC9E
accent
#D45464
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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