#AF52EE#AF52EE

#AF52EE is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.5% C 0.229 H 308.6°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF52EE
RGBrgb(175, 82, 238)
HSLhsl(276, 82%, 63%)
HSVhsv(276, 66%, 93%)
CMYKcmyk(26.5%, 65.5%, 0%, 6.7%)
CIE-LABlab(53.30, 63.48, -63.28)
CIE-LCHlch(53.30, 89.63, 315.09°)
OKLaboklab(62.52% 0.1427 -0.179)
OKLCHoklch(62.52% 0.229 308.6)
XYZxyz(36.1260, 21.3222, 83.0848)
Luminance0.2132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52EE #91EE52
analogous
#6152EE #AF52EE #EE52DF
triadic
#AF52EE #EEAF52 #52EEAF
tetradic
#AF52EE #EE6152 #91EE52 #52DFEE
square
#AF52EE #EE6152 #91EE52 #52DFEE
split-complementary
#AF52EE #DFEE52 #52EE61
monochromatic
#7212B4 #951AE9 #AF52EE #C98AF3 #E3C1F9

Accessibility & contrast

On white

3.99
#AF52EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#AF52EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52EE
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52EE#FFFFFF#000000##000000
##AF52EE1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF3
Deuteranopia (green-blind)
#3580EB
Tritanopia (blue-blind)
#A67399
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af52ee;
/* rgb */ color: rgb(175, 82, 238);
/* oklch */ color: oklch(62.5% 0.229 308.6);
Tailwind
colors: {
  custom: {
    50: '#cb89f4',
    500: '#af52ee',
    950: '#000000',
  },
}
SCSS
$custom: #af52ee;
$custom-light: #cb89f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af52ee",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 238
  },
  "hsl": {
    "h": 275.769,
    "s": 82.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62516,
    "c": 0.22889,
    "h": 308.6
  },
  "luminance": 0.21322
}

Semantic roles & 50–950 ramp

primary
#AF52EE
secondary
#C8EAB2
accent
#DE075E
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF52EE

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

Preview Lab → · Contrast checker → · Palette generator →

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