#AF52C8#AF52C8

#AF52C8 is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.2% C 0.191 H 318.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF52C8
RGBrgb(175, 82, 200)
HSLhsl(287, 52%, 55%)
HSVhsv(287, 59%, 78%)
CMYKcmyk(12.5%, 59%, 0%, 21.6%)
CIE-LABlab(51.06, 55.57, -45.31)
CIE-LCHlch(51.06, 71.70, 320.81°)
OKLaboklab(60.18% 0.1435 -0.1264)
OKLCHoklch(60.18% 0.191 318.6)
XYZxyz(31.1204, 19.3200, 56.7222)
Luminance0.1932 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52C8 #6BC852
analogous
#7452C8 #AF52C8 #C852A6
triadic
#AF52C8 #C8AF52 #52C8AF
tetradic
#AF52C8 #C87452 #6BC852 #52A6C8
square
#AF52C8 #C87452 #6BC852 #52A6C8
split-complementary
#AF52C8 #A6C852 #52C874
monochromatic
#682779 #8F35A8 #AF52C8 #C480D7 #DAAFE6

Accessibility & contrast

On white

4.32
#AF52C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AF52C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52C8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52C8#FFFFFF#000000##000000
##AF52C81.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3573CC
Deuteranopia (green-blind)
#587DC5
Tritanopia (blue-blind)
#AF6585
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af52c8;
/* rgb */ color: rgb(175, 82, 200);
/* oklch */ color: oklch(60.2% 0.191 318.6);
Tailwind
colors: {
  custom: {
    50: '#ca87d9',
    500: '#af52c8',
    950: '#000000',
  },
}
SCSS
$custom: #af52c8;
$custom-light: #ca87d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af52c8",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 287.288,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.60176,
    "c": 0.19123,
    "h": 318.6
  },
  "luminance": 0.19319
}

Semantic roles & 50–950 ramp

primary
#AF52C8
secondary
#ADD4A2
accent
#DB4D6B
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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