#AF52DB#AF52DB

#AF52DB is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.3% C 0.210 H 313.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AF52DB
RGBrgb(175, 82, 219)
HSLhsl(281, 66%, 59%)
HSVhsv(281, 63%, 86%)
CMYKcmyk(20.1%, 62.6%, 0%, 14.1%)
CIE-LABlab(52.13, 59.44, -54.44)
CIE-LCHlch(52.13, 80.60, 317.51°)
OKLaboklab(61.3% 0.1437 -0.1531)
OKLCHoklch(61.3% 0.21 313.2)
XYZxyz(33.4805, 20.2640, 69.1518)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52DB #7EDB52
analogous
#6B52DB #AF52DB #DB52C3
triadic
#AF52DB #DBAF52 #52DBAF
tetradic
#AF52DB #DB6B52 #7EDB52 #52C3DB
square
#AF52DB #DB6B52 #7EDB52 #52C3DB
split-complementary
#AF52DB #C3DB52 #52DB6B
monochromatic
#6E1F94 #9429C6 #AF52DB #C685E6 #DEB7F0

Accessibility & contrast

On white

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

On black

5.05
#AF52DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52DB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52DB#FFFFFF#000000##000000
##AF52DB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1877DF
Deuteranopia (green-blind)
#4A7ED8
Tritanopia (blue-blind)
#AB6C8F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af52db;
/* rgb */ color: rgb(175, 82, 219);
/* oklch */ color: oklch(61.3% 0.210 313.2);
Tailwind
colors: {
  custom: {
    50: '#ca88e7',
    500: '#af52db',
    950: '#000000',
  },
}
SCSS
$custom: #af52db;
$custom-light: #ca88e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af52db",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 280.73,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61303,
    "c": 0.20994,
    "h": 313.2
  },
  "luminance": 0.20263
}

Semantic roles & 50–950 ramp

primary
#AF52DB
secondary
#BBDFAA
accent
#E93F76
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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