#AF52DC#AF52DC

#AF52DC is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.4% C 0.211 H 312.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF52DC
RGBrgb(175, 82, 220)
HSLhsl(280, 66%, 59%)
HSVhsv(280, 63%, 86%)
CMYKcmyk(20.5%, 62.7%, 0%, 13.7%)
CIE-LABlab(52.19, 59.65, -54.91)
CIE-LCHlch(52.19, 81.07, 317.37°)
OKLaboklab(61.37% 0.1437 -0.1544)
OKLCHoklch(61.37% 0.211 312.9)
XYZxyz(33.6125, 20.3168, 69.8472)
Luminance0.2032 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52DC #7FDC52
analogous
#6A52DC #AF52DC #DC52C4
triadic
#AF52DC #DCAF52 #52DCAF
tetradic
#AF52DC #DC6A52 #7FDC52 #52C4DC
square
#AF52DC #DC6A52 #7FDC52 #52C4DC
split-complementary
#AF52DC #C4DC52 #52DC6A
monochromatic
#6F1E95 #9429C8 #AF52DC #C785E6 #DEB8F1

Accessibility & contrast

On white

4.15
#AF52DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AF52DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52DC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52DC#FFFFFF#000000##000000
##AF52DC1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1578E0
Deuteranopia (green-blind)
#497FD9
Tritanopia (blue-blind)
#AA6C90
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af52dc;
/* rgb */ color: rgb(175, 82, 220);
/* oklch */ color: oklch(61.4% 0.211 312.9);
Tailwind
colors: {
  custom: {
    50: '#ca88e7',
    500: '#af52dc',
    950: '#000000',
  },
}
SCSS
$custom: #af52dc;
$custom-light: #ca88e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af52dc",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 280.435,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61365,
    "c": 0.21093,
    "h": 312.9
  },
  "luminance": 0.20316
}

Semantic roles & 50–950 ramp

primary
#AF52DC
secondary
#BCE0AA
accent
#E93F76
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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