#AF52FD#AF52FD

#AF52FD is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.5% C 0.244 H 305.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF52FD
RGBrgb(175, 82, 253)
HSLhsl(273, 98%, 66%)
HSVhsv(273, 68%, 99%)
CMYKcmyk(30.8%, 67.6%, 0%, 0.8%)
CIE-LABlab(54.28, 66.76, -70.06)
CIE-LCHlch(54.28, 96.77, 313.62°)
OKLaboklab(63.53% 0.1411 -0.1989)
OKLCHoklch(63.53% 0.244 305.4)
XYZxyz(38.4222, 22.2407, 95.1782)
Luminance0.2224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52FD #A0FD52
analogous
#5A52FD #AF52FD #FD52F5
triadic
#AF52FD #FDAF52 #52FDAF
tetradic
#AF52FD #FD5A52 #A0FD52 #52F5FD
square
#AF52FD #FD5A52 #A0FD52 #52F5FD
split-complementary
#AF52FD #F5FD52 #52FD5A
monochromatic
#7302D2 #9315FC #AF52FD #CB8EFE #E7CBFE

Accessibility & contrast

On white

3.85
#AF52FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#AF52FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52FD
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52FD#FFFFFF#000000##000000
##AF52FD1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#1282F9
Tritanopia (blue-blind)
#A179A2
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af52fd;
/* rgb */ color: rgb(175, 82, 253);
/* oklch */ color: oklch(63.5% 0.244 305.4);
Tailwind
colors: {
  custom: {
    50: '#cc89ff',
    500: '#af52fd',
    950: '#000000',
  },
}
SCSS
$custom: #af52fd;
$custom-light: #cc89ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af52fd",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 253
  },
  "hsl": {
    "h": 272.632,
    "s": 97.714,
    "l": 65.686
  },
  "oklch": {
    "l": 0.63531,
    "c": 0.24388,
    "h": 305.4
  },
  "luminance": 0.2224
}

Semantic roles & 50–950 ramp

primary
#AF52FD
secondary
#D3F2B9
accent
#E60069
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF52FD

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

Preview Lab → · Contrast checker → · Palette generator →

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