#AF52DA#AF52DA

#AF52DA is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.2% C 0.209 H 313.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF52DA
RGBrgb(175, 82, 218)
HSLhsl(281, 65%, 59%)
HSVhsv(281, 62%, 85%)
CMYKcmyk(19.7%, 62.4%, 0%, 14.5%)
CIE-LABlab(52.08, 59.23, -53.97)
CIE-LCHlch(52.08, 80.13, 317.66°)
OKLaboklab(61.24% 0.1437 -0.1517)
OKLCHoklch(61.24% 0.209 313.5)
XYZxyz(33.3492, 20.2115, 68.4605)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52DA #7DDA52
analogous
#6B52DA #AF52DA #DA52C1
triadic
#AF52DA #DAAF52 #52DAAF
tetradic
#AF52DA #DA6B52 #7DDA52 #52C1DA
square
#AF52DA #DA6B52 #7DDA52 #52C1DA
split-complementary
#AF52DA #C1DA52 #52DA6B
monochromatic
#6E1F92 #942AC5 #AF52DA #C684E5 #DEB7F0

Accessibility & contrast

On white

4.16
#AF52DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AF52DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52DA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52DA#FFFFFF#000000##000000
##AF52DA1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A77DE
Deuteranopia (green-blind)
#4B7ED7
Tritanopia (blue-blind)
#AB6B8F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af52da;
/* rgb */ color: rgb(175, 82, 218);
/* oklch */ color: oklch(61.2% 0.209 313.5);
Tailwind
colors: {
  custom: {
    50: '#ca88e6',
    500: '#af52da',
    950: '#000000',
  },
}
SCSS
$custom: #af52da;
$custom-light: #ca88e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af52da",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 218
  },
  "hsl": {
    "h": 281.029,
    "s": 64.762,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61242,
    "c": 0.20895,
    "h": 313.5
  },
  "luminance": 0.20211
}

Semantic roles & 50–950 ramp

primary
#AF52DA
secondary
#BADFA9
accent
#E84075
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF52DA

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

Preview Lab → · Contrast checker → · Palette generator →

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