#AF52DF#AF52DF

#AF52DF is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.6% C 0.214 H 312.2°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AF52DF
RGBrgb(175, 82, 223)
HSLhsl(280, 69%, 60%)
HSVhsv(280, 63%, 87%)
CMYKcmyk(21.5%, 63.2%, 0%, 12.5%)
CIE-LABlab(52.37, 60.27, -56.33)
CIE-LCHlch(52.37, 82.50, 316.94°)
OKLaboklab(61.55% 0.1436 -0.1586)
OKLCHoklch(61.55% 0.214 312.2)
XYZxyz(34.0134, 20.4771, 71.9585)
Luminance0.2048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52DF #82DF52
analogous
#6852DF #AF52DF #DF52C9
triadic
#AF52DF #DFAF52 #52DFAF
tetradic
#AF52DF #DF6852 #82DF52 #52C9DF
square
#AF52DF #DF6852 #82DF52 #52C9DF
split-complementary
#AF52DF #C9DF52 #52DF68
monochromatic
#6F1D9A #9526CE #AF52DF #C786E9 #DFB9F2

Accessibility & contrast

On white

4.12
#AF52DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AF52DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52DF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52DF#FFFFFF#000000##000000
##AF52DF1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A78E3
Deuteranopia (green-blind)
#467FDC
Tritanopia (blue-blind)
#AA6D91
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af52df;
/* rgb */ color: rgb(175, 82, 223);
/* oklch */ color: oklch(61.6% 0.214 312.2);
Tailwind
colors: {
  custom: {
    50: '#cb88ea',
    500: '#af52df',
    950: '#000000',
  },
}
SCSS
$custom: #af52df;
$custom-light: #cb88ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af52df",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 279.574,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61552,
    "c": 0.21392,
    "h": 312.2
  },
  "luminance": 0.20476
}

Semantic roles & 50–950 ramp

primary
#AF52DF
secondary
#BEE2AB
accent
#EC3C78
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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