#AF58CC#AF58CC

#AF58CC is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.2% C 0.186 H 316.9°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF58CC
RGBrgb(175, 88, 204)
HSLhsl(285, 53%, 57%)
HSVhsv(285, 57%, 80%)
CMYKcmyk(14.2%, 56.9%, 0%, 20%)
CIE-LABlab(52.35, 53.48, -45.56)
CIE-LCHlch(52.35, 70.25, 319.57°)
OKLaboklab(61.19% 0.1361 -0.1271)
OKLCHoklch(61.19% 0.186 316.9)
XYZxyz(32.0664, 20.4542, 59.3739)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58CC #75CC58
analogous
#7558CC #AF58CC #CC58AF
triadic
#AF58CC #CCAF58 #58CCAF
tetradic
#AF58CC #CC7558 #75CC58 #58AFCC
square
#AF58CC #CC7558 #75CC58 #58AFCC
split-complementary
#AF58CC #AFCC58 #58CC75
monochromatic
#6B2882 #9236B1 #AF58CC #C587DA #DCB6E9

Accessibility & contrast

On white

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

On black

5.09
#AF58CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58CC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58CC#FFFFFF#000000##000000
##AF58CC1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B77D0
Deuteranopia (green-blind)
#5B80C9
Tritanopia (blue-blind)
#AE6B8A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af58cc;
/* rgb */ color: rgb(175, 88, 204);
/* oklch */ color: oklch(61.2% 0.186 316.9);
Tailwind
colors: {
  custom: {
    50: '#ca8bdc',
    500: '#af58cc',
    950: '#000000',
  },
}
SCSS
$custom: #af58cc;
$custom-light: #ca8bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#af58cc",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 204
  },
  "hsl": {
    "h": 285,
    "s": 53.211,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61186,
    "c": 0.18622,
    "h": 316.9
  },
  "luminance": 0.20453
}

Semantic roles & 50–950 ramp

primary
#AF58CC
secondary
#B4D7A8
accent
#DD4B70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF58CC

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

Preview Lab → · Contrast checker → · Palette generator →

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