#AF52F1#AF52F1

#AF52F1 is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.7% C 0.232 H 307.9°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF52F1
RGBrgb(175, 82, 241)
HSLhsl(275, 85%, 63%)
HSVhsv(275, 66%, 95%)
CMYKcmyk(27.4%, 66%, 0%, 5.5%)
CIE-LABlab(53.49, 64.13, -64.65)
CIE-LCHlch(53.49, 91.06, 314.77°)
OKLaboklab(62.72% 0.1424 -0.183)
OKLCHoklch(62.72% 0.232 307.9)
XYZxyz(36.5704, 21.4999, 85.4254)
Luminance0.2150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52F1 #94F152
analogous
#5F52F1 #AF52F1 #F152E4
triadic
#AF52F1 #F1AF52 #52F1AF
tetradic
#AF52F1 #F15F52 #94F152 #52E4F1
square
#AF52F1 #F15F52 #94F152 #52E4F1
split-complementary
#AF52F1 #E4F152 #52F15F
monochromatic
#730FBA #9519EC #AF52F1 #C98BF6 #E3C3FA

Accessibility & contrast

On white

3.96
#AF52F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#AF52F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52F1
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52F1#FFFFFF#000000##000000
##AF52F11.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF6
Deuteranopia (green-blind)
#3081ED
Tritanopia (blue-blind)
#A5749B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af52f1;
/* rgb */ color: rgb(175, 82, 241);
/* oklch */ color: oklch(62.7% 0.232 307.9);
Tailwind
colors: {
  custom: {
    50: '#cb89f6',
    500: '#af52f1',
    950: '#000000',
  },
}
SCSS
$custom: #af52f1;
$custom-light: #cb89f6;
$custom-dark: #000000;
JSON
{
  "hex": "#af52f1",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 241
  },
  "hsl": {
    "h": 275.094,
    "s": 85.027,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62715,
    "c": 0.23189,
    "h": 307.9
  },
  "luminance": 0.21499
}

Semantic roles & 50–950 ramp

primary
#AF52F1
secondary
#CBECB3
accent
#E20460
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF52F1

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

Preview Lab → · Contrast checker → · Palette generator →

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