#AF52CF#AF52CF

#AF52CF is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.6% C 0.198 H 316.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF52CF
RGBrgb(175, 82, 207)
HSLhsl(285, 57%, 57%)
HSVhsv(285, 60%, 81%)
CMYKcmyk(15.5%, 60.4%, 0%, 18.8%)
CIE-LABlab(51.44, 56.97, -48.71)
CIE-LCHlch(51.44, 74.95, 319.47°)
OKLaboklab(60.58% 0.1437 -0.1363)
OKLCHoklch(60.58% 0.198 316.5)
XYZxyz(31.9573, 19.6547, 61.1297)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52CF #72CF52
analogous
#7152CF #AF52CF #CF52B1
triadic
#AF52CF #CFAF52 #52CFAF
tetradic
#AF52CF #CF7152 #72CF52 #52B1CF
square
#AF52CF #CF7152 #72CF52 #52B1CF
split-complementary
#AF52CF #B1CF52 #52CF71
monochromatic
#6A2482 #9131B2 #AF52CF #C582DC #DBB2EA

Accessibility & contrast

On white

4.26
#AF52CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF52CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52CF
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52CF#FFFFFF#000000##000000
##AF52CF1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D75D3
Deuteranopia (green-blind)
#547DCC
Tritanopia (blue-blind)
#AD6789
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af52cf;
/* rgb */ color: rgb(175, 82, 207);
/* oklch */ color: oklch(60.6% 0.198 316.5);
Tailwind
colors: {
  custom: {
    50: '#ca88de',
    500: '#af52cf',
    950: '#000000',
  },
}
SCSS
$custom: #af52cf;
$custom-light: #ca88de;
$custom-dark: #000000;
JSON
{
  "hex": "#af52cf",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 284.64,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60581,
    "c": 0.19808,
    "h": 316.5
  },
  "luminance": 0.19654
}

Semantic roles & 50–950 ramp

primary
#AF52CF
secondary
#B2D8A5
accent
#E0486F
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF52CF

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

Preview Lab → · Contrast checker → · Palette generator →

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