#AF52FF#AF52FF

#AF52FF is a light, highly saturated violet. Relative luminance 0.224; OKLCH L 63.7% C 0.246 H 305.0°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF52FF
RGBrgb(175, 82, 255)
HSLhsl(272, 100%, 66%)
HSVhsv(272, 68%, 100%)
CMYKcmyk(31.4%, 67.8%, 0%, 0%)
CIE-LABlab(54.42, 67.21, -70.95)
CIE-LCHlch(54.42, 97.73, 313.45°)
OKLaboklab(63.67% 0.1409 -0.2015)
OKLCHoklch(63.67% 0.246 305)
XYZxyz(38.7425, 22.3688, 96.8649)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52FF #A2FF52
analogous
#5852FF #AF52FF #FF52F9
triadic
#AF52FF #FFAF52 #52FFAF
tetradic
#AF52FF #FF5852 #A2FF52 #52F9FF
square
#AF52FF #FF5852 #A2FF52 #52F9FF
split-complementary
#AF52FF #F9FF52 #52FF58
monochromatic
#7300D7 #9315FF #AF52FF #CB8FFF #E8CCFF

Accessibility & contrast

On white

3.84
#AF52FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#AF52FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52FF
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52FF#FFFFFF#000000##000000
##AF52FF1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#0782FB
Tritanopia (blue-blind)
#A079A3
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #af52ff;
/* rgb */ color: rgb(175, 82, 255);
/* oklch */ color: oklch(63.7% 0.246 305.0);
Tailwind
colors: {
  custom: {
    50: '#cc89ff',
    500: '#af52ff',
    950: '#000000',
  },
}
SCSS
$custom: #af52ff;
$custom-light: #cc89ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af52ff",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 255
  },
  "hsl": {
    "h": 272.254,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63669,
    "c": 0.24587,
    "h": 305
  },
  "luminance": 0.22369
}

Semantic roles & 50–950 ramp

primary
#AF52FF
secondary
#D4F3BA
accent
#E6006A
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF52FF

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

Preview Lab → · Contrast checker → · Palette generator →

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