#AF52F3#AF52F3

#AF52F3 is a light, highly saturated violet. Relative luminance 0.216; OKLCH L 62.8% C 0.234 H 307.5°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#AF52F3
RGBrgb(175, 82, 243)
HSLhsl(275, 87%, 64%)
HSVhsv(275, 66%, 95%)
CMYKcmyk(28%, 66.3%, 0%, 4.7%)
CIE-LABlab(53.62, 64.56, -65.56)
CIE-LCHlch(53.62, 92.01, 314.56°)
OKLaboklab(62.85% 0.1422 -0.1857)
OKLCHoklch(62.85% 0.234 307.5)
XYZxyz(36.8708, 21.6201, 87.0074)
Luminance0.2162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52F3 #96F352
analogous
#5E52F3 #AF52F3 #F352E7
triadic
#AF52F3 #F3AF52 #52F3AF
tetradic
#AF52F3 #F35E52 #96F352 #52E7F3
square
#AF52F3 #F35E52 #96F352 #52E7F3
split-complementary
#AF52F3 #E7F352 #52F35E
monochromatic
#730DBD #9519EF #AF52F3 #C98BF7 #E4C4FB

Accessibility & contrast

On white

3.94
#AF52F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#AF52F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52F3
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52F3#FFFFFF#000000##000000
##AF52F31.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF8
Deuteranopia (green-blind)
#2D81EF
Tritanopia (blue-blind)
#A4759C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #af52f3;
/* rgb */ color: rgb(175, 82, 243);
/* oklch */ color: oklch(62.8% 0.234 307.5);
Tailwind
colors: {
  custom: {
    50: '#cc89f8',
    500: '#af52f3',
    950: '#000000',
  },
}
SCSS
$custom: #af52f3;
$custom-light: #cc89f8;
$custom-dark: #000000;
JSON
{
  "hex": "#af52f3",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 243
  },
  "hsl": {
    "h": 274.658,
    "s": 87.027,
    "l": 63.725
  },
  "oklch": {
    "l": 0.62849,
    "c": 0.23389,
    "h": 307.5
  },
  "luminance": 0.2162
}

Semantic roles & 50–950 ramp

primary
#AF52F3
secondary
#CCEDB4
accent
#E40261
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF52F3

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

Preview Lab → · Contrast checker → · Palette generator →

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