#AF52CC#AF52CC

#AF52CC is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.4% C 0.195 H 317.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF52CC
RGBrgb(175, 82, 204)
HSLhsl(286, 54%, 56%)
HSVhsv(286, 60%, 80%)
CMYKcmyk(14.2%, 59.8%, 0%, 20%)
CIE-LABlab(51.28, 56.37, -47.26)
CIE-LCHlch(51.28, 73.55, 320.03°)
OKLaboklab(60.41% 0.1437 -0.1321)
OKLCHoklch(60.41% 0.195 317.4)
XYZxyz(31.5940, 19.5094, 59.2165)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52CC #6FCC52
analogous
#7252CC #AF52CC #CC52AC
triadic
#AF52CC #CCAF52 #52CCAF
tetradic
#AF52CC #CC7252 #6FCC52 #52ACCC
square
#AF52CC #CC7252 #6FCC52 #52ACCC
split-complementary
#AF52CC #ACCC52 #52CC72
monochromatic
#69257E #9133AE #AF52CC #C581DA #DBB1E8

Accessibility & contrast

On white

4.28
#AF52CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AF52CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52CC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52CC#FFFFFF#000000##000000
##AF52CC1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3174D0
Deuteranopia (green-blind)
#567DC9
Tritanopia (blue-blind)
#AE6687
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af52cc;
/* rgb */ color: rgb(175, 82, 204);
/* oklch */ color: oklch(60.4% 0.195 317.4);
Tailwind
colors: {
  custom: {
    50: '#ca88dc',
    500: '#af52cc',
    950: '#000000',
  },
}
SCSS
$custom: #af52cc;
$custom-light: #ca88dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af52cc",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 285.738,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60406,
    "c": 0.19514,
    "h": 317.4
  },
  "luminance": 0.19508
}

Semantic roles & 50–950 ramp

primary
#AF52CC
secondary
#B0D6A4
accent
#DE4A6D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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