#AF52CE#AF52CE

#AF52CE is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.5% C 0.197 H 316.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF52CE
RGBrgb(175, 82, 206)
HSLhsl(285, 56%, 56%)
HSVhsv(285, 60%, 81%)
CMYKcmyk(15%, 60.2%, 0%, 19.2%)
CIE-LABlab(51.39, 56.77, -48.22)
CIE-LCHlch(51.39, 74.49, 319.65°)
OKLaboklab(60.52% 0.1437 -0.1349)
OKLCHoklch(60.52% 0.197 316.8)
XYZxyz(31.8354, 19.6060, 60.4879)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52CE #71CE52
analogous
#7152CE #AF52CE #CE52AF
triadic
#AF52CE #CEAF52 #52CEAF
tetradic
#AF52CE #CE7152 #71CE52 #52AFCE
square
#AF52CE #CE7152 #71CE52 #52AFCE
split-complementary
#AF52CE #AFCE52 #52CE71
monochromatic
#6A2581 #9132B1 #AF52CE #C582DC #DBB1E9

Accessibility & contrast

On white

4.27
#AF52CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AF52CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52CE
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52CE#FFFFFF#000000##000000
##AF52CE1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E75D2
Deuteranopia (green-blind)
#547DCB
Tritanopia (blue-blind)
#AE6788
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af52ce;
/* rgb */ color: rgb(175, 82, 206);
/* oklch */ color: oklch(60.5% 0.197 316.8);
Tailwind
colors: {
  custom: {
    50: '#ca88dd',
    500: '#af52ce',
    950: '#000000',
  },
}
SCSS
$custom: #af52ce;
$custom-light: #ca88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af52ce",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 285,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60522,
    "c": 0.1971,
    "h": 316.8
  },
  "luminance": 0.19605
}

Semantic roles & 50–950 ramp

primary
#AF52CE
secondary
#B1D7A4
accent
#DF496E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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