#AF52DD#AF52DD

#AF52DD is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.4% C 0.212 H 312.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AF52DD
RGBrgb(175, 82, 221)
HSLhsl(280, 67%, 59%)
HSVhsv(280, 63%, 87%)
CMYKcmyk(20.8%, 62.9%, 0%, 13.3%)
CIE-LABlab(52.25, 59.85, -55.38)
CIE-LCHlch(52.25, 81.55, 317.22°)
OKLaboklab(61.43% 0.1436 -0.1558)
OKLCHoklch(61.43% 0.212 312.7)
XYZxyz(33.7453, 20.3699, 70.5467)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52DD #80DD52
analogous
#6A52DD #AF52DD #DD52C6
triadic
#AF52DD #DDAF52 #52DDAF
tetradic
#AF52DD #DD6A52 #80DD52 #52C6DD
square
#AF52DD #DD6A52 #80DD52 #52C6DD
split-complementary
#AF52DD #C6DD52 #52DD6A
monochromatic
#6F1E97 #9428CA #AF52DD #C785E7 #DEB8F1

Accessibility & contrast

On white

4.14
#AF52DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#AF52DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52DD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52DD#FFFFFF#000000##000000
##AF52DD1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1278E1
Deuteranopia (green-blind)
#487FDA
Tritanopia (blue-blind)
#AA6D90
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af52dd;
/* rgb */ color: rgb(175, 82, 221);
/* oklch */ color: oklch(61.4% 0.212 312.7);
Tailwind
colors: {
  custom: {
    50: '#ca88e8',
    500: '#af52dd',
    950: '#000000',
  },
}
SCSS
$custom: #af52dd;
$custom-light: #ca88e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af52dd",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 221
  },
  "hsl": {
    "h": 280.144,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61427,
    "c": 0.21193,
    "h": 312.7
  },
  "luminance": 0.20369
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF52DD

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

Preview Lab → · Contrast checker → · Palette generator →

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