#AF52CA#AF52CA

#AF52CA is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.3% C 0.193 H 318.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AF52CA
RGBrgb(175, 82, 202)
HSLhsl(287, 53%, 56%)
HSVhsv(287, 59%, 79%)
CMYKcmyk(13.4%, 59.4%, 0%, 20.8%)
CIE-LABlab(51.17, 55.97, -46.28)
CIE-LCHlch(51.17, 72.63, 320.41°)
OKLaboklab(60.29% 0.1436 -0.1292)
OKLCHoklch(60.29% 0.193 318)
XYZxyz(31.3557, 19.4141, 57.9613)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52CA #6DCA52
analogous
#7352CA #AF52CA #CA52A9
triadic
#AF52CA #CAAF52 #52CAAF
tetradic
#AF52CA #CA7352 #6DCA52 #52A9CA
square
#AF52CA #CA7352 #6DCA52 #52A9CA
split-complementary
#AF52CA #A9CA52 #52CA73
monochromatic
#68267C #9034AB #AF52CA #C581D8 #DAB0E7

Accessibility & contrast

On white

4.30
#AF52CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#AF52CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52CA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52CA#FFFFFF#000000##000000
##AF52CA1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3374CE
Deuteranopia (green-blind)
#577DC7
Tritanopia (blue-blind)
#AF6686
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af52ca;
/* rgb */ color: rgb(175, 82, 202);
/* oklch */ color: oklch(60.3% 0.193 318.0);
Tailwind
colors: {
  custom: {
    50: '#ca88db',
    500: '#af52ca',
    950: '#000000',
  },
}
SCSS
$custom: #af52ca;
$custom-light: #ca88db;
$custom-dark: #000000;
JSON
{
  "hex": "#af52ca",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 286.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.6029,
    "c": 0.19318,
    "h": 318
  },
  "luminance": 0.19413
}

Semantic roles & 50–950 ramp

primary
#AF52CA
secondary
#AED5A3
accent
#DD4B6C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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