#AF52DE#AF52DE

#AF52DE is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.213 H 312.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AF52DE
RGBrgb(175, 82, 222)
HSLhsl(280, 68%, 60%)
HSVhsv(280, 63%, 87%)
CMYKcmyk(21.2%, 63.1%, 0%, 12.9%)
CIE-LABlab(52.31, 60.06, -55.86)
CIE-LCHlch(52.31, 82.02, 317.08°)
OKLaboklab(61.49% 0.1436 -0.1572)
OKLCHoklch(61.49% 0.213 312.4)
XYZxyz(33.8790, 20.4234, 71.2505)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52DE #81DE52
analogous
#6952DE #AF52DE #DE52C7
triadic
#AF52DE #DEAF52 #52DEAF
tetradic
#AF52DE #DE6952 #81DE52 #52C7DE
square
#AF52DE #DE6952 #81DE52 #52C7DE
split-complementary
#AF52DE #C7DE52 #52DE69
monochromatic
#6F1D99 #9527CC #AF52DE #C785E8 #DFB9F2

Accessibility & contrast

On white

4.13
#AF52DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#AF52DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52DE
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52DE#FFFFFF#000000##000000
##AF52DE1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E78E2
Deuteranopia (green-blind)
#477FDB
Tritanopia (blue-blind)
#AA6D91
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af52de;
/* rgb */ color: rgb(175, 82, 222);
/* oklch */ color: oklch(61.5% 0.213 312.4);
Tailwind
colors: {
  custom: {
    50: '#cb88e9',
    500: '#af52de',
    950: '#000000',
  },
}
SCSS
$custom: #af52de;
$custom-light: #cb88e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af52de",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 222
  },
  "hsl": {
    "h": 279.857,
    "s": 67.961,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61489,
    "c": 0.21292,
    "h": 312.4
  },
  "luminance": 0.20422
}

Semantic roles & 50–950 ramp

primary
#AF52DE
secondary
#BDE1AB
accent
#EB3D77
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF52DE

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

Preview Lab → · Contrast checker → · Palette generator →

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