#AF52F7#AF52F7

#AF52F7 is a light, highly saturated violet. Relative luminance 0.219; OKLCH L 63.1% C 0.238 H 306.6°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF52F7
RGBrgb(175, 82, 247)
HSLhsl(274, 91%, 65%)
HSVhsv(274, 67%, 97%)
CMYKcmyk(29.1%, 66.8%, 0%, 3.1%)
CIE-LABlab(53.88, 65.44, -67.36)
CIE-LCHlch(53.88, 93.92, 314.17°)
OKLaboklab(63.12% 0.1418 -0.191)
OKLCHoklch(63.12% 0.238 306.6)
XYZxyz(37.4814, 21.8643, 90.2233)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52F7 #9AF752
analogous
#5D52F7 #AF52F7 #F752ED
triadic
#AF52F7 #F7AF52 #52F7AF
tetradic
#AF52F7 #F75D52 #9AF752 #52EDF7
square
#AF52F7 #F75D52 #9AF752 #52EDF7
split-complementary
#AF52F7 #EDF752 #52F75D
monochromatic
#7309C5 #9418F4 #AF52F7 #CA8CFA #E5C7FC

Accessibility & contrast

On white

3.91
#AF52F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#AF52F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52F7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52F7#FFFFFF#000000##000000
##AF52F71.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFC
Deuteranopia (green-blind)
#2481F3
Tritanopia (blue-blind)
#A3769E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #af52f7;
/* rgb */ color: rgb(175, 82, 247);
/* oklch */ color: oklch(63.1% 0.238 306.6);
Tailwind
colors: {
  custom: {
    50: '#cc89fb',
    500: '#af52f7',
    950: '#000000',
  },
}
SCSS
$custom: #af52f7;
$custom-light: #cc89fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af52f7",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 247
  },
  "hsl": {
    "h": 273.818,
    "s": 91.16,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63119,
    "c": 0.23789,
    "h": 306.6
  },
  "luminance": 0.21864
}

Semantic roles & 50–950 ramp

primary
#AF52F7
secondary
#CFEFB6
accent
#E60064
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF52F7

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

Preview Lab → · Contrast checker → · Palette generator →

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