#AF52EB#AF52EB

#AF52EB is a light, highly saturated violet. Relative luminance 0.211; OKLCH L 62.3% C 0.226 H 309.2°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF52EB
RGBrgb(175, 82, 235)
HSLhsl(276, 79%, 62%)
HSVhsv(276, 65%, 92%)
CMYKcmyk(25.5%, 65.1%, 0%, 7.8%)
CIE-LABlab(53.11, 62.83, -61.90)
CIE-LCHlch(53.11, 88.20, 315.43°)
OKLaboklab(62.32% 0.1429 -0.1749)
OKLCHoklch(62.32% 0.226 309.2)
XYZxyz(35.6889, 21.1474, 80.7829)
Luminance0.2115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52EB #8EEB52
analogous
#6352EB #AF52EB #EB52DA
triadic
#AF52EB #EBAF52 #52EBAF
tetradic
#AF52EB #EB6352 #8EEB52 #52DAEB
square
#AF52EB #EB6352 #8EEB52 #52DAEB
split-complementary
#AF52EB #DAEB52 #52EB63
monochromatic
#7214AE #961BE5 #AF52EB #C889F1 #E2C0F8

Accessibility & contrast

On white

4.02
#AF52EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AF52EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52EB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52EB#FFFFFF#000000##000000
##AF52EB1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#3980E8
Tritanopia (blue-blind)
#A67298
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af52eb;
/* rgb */ color: rgb(175, 82, 235);
/* oklch */ color: oklch(62.3% 0.226 309.2);
Tailwind
colors: {
  custom: {
    50: '#cb88f2',
    500: '#af52eb',
    950: '#000000',
  },
}
SCSS
$custom: #af52eb;
$custom-light: #cb88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af52eb",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 276.471,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62319,
    "c": 0.22589,
    "h": 309.2
  },
  "luminance": 0.21147
}

Semantic roles & 50–950 ramp

primary
#AF52EB
secondary
#C6E8B0
accent
#DC0A5C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AF52EB

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

Preview Lab → · Contrast checker → · Palette generator →

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