#AF52E0#AF52E0

#AF52E0 is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.6% C 0.215 H 311.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF52E0
RGBrgb(175, 82, 224)
HSLhsl(279, 70%, 60%)
HSVhsv(279, 63%, 88%)
CMYKcmyk(21.9%, 63.4%, 0%, 12.2%)
CIE-LABlab(52.43, 60.48, -56.79)
CIE-LCHlch(52.43, 82.97, 316.80°)
OKLaboklab(61.61% 0.1435 -0.16)
OKLCHoklch(61.61% 0.215 311.9)
XYZxyz(34.1486, 20.5312, 72.6706)
Luminance0.2053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52E0 #83E052
analogous
#6852E0 #AF52E0 #E052CA
triadic
#AF52E0 #E0AF52 #52E0AF
tetradic
#AF52E0 #E06852 #83E052 #52CAE0
square
#AF52E0 #E06852 #83E052 #52CAE0
split-complementary
#AF52E0 #CAE052 #52E068
monochromatic
#701C9C #9525D0 #AF52E0 #C786E9 #DFBAF3

Accessibility & contrast

On white

4.11
#AF52E0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AF52E0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52E0
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52E0#FFFFFF#000000##000000
##AF52E01.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0578E4
Deuteranopia (green-blind)
#457FDD
Tritanopia (blue-blind)
#A96E92
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af52e0;
/* rgb */ color: rgb(175, 82, 224);
/* oklch */ color: oklch(61.6% 0.215 311.9);
Tailwind
colors: {
  custom: {
    50: '#cb88ea',
    500: '#af52e0',
    950: '#000000',
  },
}
SCSS
$custom: #af52e0;
$custom-light: #cb88ea;
$custom-dark: #000000;
JSON
{
  "hex": "#af52e0",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 224
  },
  "hsl": {
    "h": 279.296,
    "s": 69.608,
    "l": 60
  },
  "oklch": {
    "l": 0.61614,
    "c": 0.21491,
    "h": 311.9
  },
  "luminance": 0.2053
}

Semantic roles & 50–950 ramp

primary
#AF52E0
secondary
#BEE2AC
accent
#EC3B78
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF52E0

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

Preview Lab → · Contrast checker → · Palette generator →

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