#AF52E6#AF52E6

#AF52E6 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 62.0% C 0.221 H 310.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AF52E6
RGBrgb(175, 82, 230)
HSLhsl(278, 75%, 61%)
HSVhsv(278, 64%, 90%)
CMYKcmyk(23.9%, 64.3%, 0%, 9.8%)
CIE-LABlab(52.80, 61.76, -59.59)
CIE-LCHlch(52.80, 85.82, 316.02°)
OKLaboklab(62% 0.1432 -0.1682)
OKLCHoklch(62% 0.221 310.4)
XYZxyz(34.9767, 20.8625, 77.0319)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52E6 #89E652
analogous
#6552E6 #AF52E6 #E652D3
triadic
#AF52E6 #E6AF52 #52E6AF
tetradic
#AF52E6 #E66552 #89E652 #52D3E6
square
#AF52E6 #E66552 #89E652 #52D3E6
split-complementary
#AF52E6 #D3E652 #52E665
monochromatic
#7118A6 #9520DB #AF52E6 #C887EE #E0BDF5

Accessibility & contrast

On white

4.06
#AF52E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#AF52E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52E6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52E6#FFFFFF#000000##000000
##AF52E61.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEA
Deuteranopia (green-blind)
#3F80E3
Tritanopia (blue-blind)
#A87095
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af52e6;
/* rgb */ color: rgb(175, 82, 230);
/* oklch */ color: oklch(62.0% 0.221 310.4);
Tailwind
colors: {
  custom: {
    50: '#cb88ef',
    500: '#af52e6',
    950: '#000000',
  },
}
SCSS
$custom: #af52e6;
$custom-light: #cb88ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af52e6",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 230
  },
  "hsl": {
    "h": 277.703,
    "s": 74.747,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61995,
    "c": 0.2209,
    "h": 310.4
  },
  "luminance": 0.20862
}

Semantic roles & 50–950 ramp

primary
#AF52E6
secondary
#C3E6AE
accent
#D70F59
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF52E6

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

Preview Lab → · Contrast checker → · Palette generator →

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