#AF52D2#AF52D2

#AF52D2 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 60.8% C 0.201 H 315.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF52D2
RGBrgb(175, 82, 210)
HSLhsl(284, 59%, 57%)
HSVhsv(284, 61%, 82%)
CMYKcmyk(16.7%, 61%, 0%, 17.6%)
CIE-LABlab(51.61, 57.58, -50.15)
CIE-LCHlch(51.61, 76.36, 318.94°)
OKLaboklab(60.76% 0.1438 -0.1405)
OKLCHoklch(60.76% 0.201 315.7)
XYZxyz(32.3275, 19.8028, 63.0797)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52D2 #75D252
analogous
#6F52D2 #AF52D2 #D252B5
triadic
#AF52D2 #D2AF52 #52D2AF
tetradic
#AF52D2 #D26F52 #75D252 #52B5D2
square
#AF52D2 #D26F52 #75D252 #52B5D2
split-complementary
#AF52D2 #B5D252 #52D26F
monochromatic
#6B2387 #9230B7 #AF52D2 #C583DF #DCB3EB

Accessibility & contrast

On white

4.23
#AF52D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AF52D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52D2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52D2#FFFFFF#000000##000000
##AF52D21.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2975D6
Deuteranopia (green-blind)
#517ECF
Tritanopia (blue-blind)
#AD698B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af52d2;
/* rgb */ color: rgb(175, 82, 210);
/* oklch */ color: oklch(60.8% 0.201 315.7);
Tailwind
colors: {
  custom: {
    50: '#ca88e0',
    500: '#af52d2',
    950: '#000000',
  },
}
SCSS
$custom: #af52d2;
$custom-light: #ca88e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af52d2",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 283.594,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60758,
    "c": 0.20103,
    "h": 315.7
  },
  "luminance": 0.19802
}

Semantic roles & 50–950 ramp

primary
#AF52D2
secondary
#B4DAA6
accent
#E24671
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF52D2

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

Preview Lab → · Contrast checker → · Palette generator →

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