#AF58CE#AF58CE

#AF58CE is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.3% C 0.188 H 316.3°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF58CE
RGBrgb(175, 88, 206)
HSLhsl(284, 55%, 58%)
HSVhsv(284, 57%, 81%)
CMYKcmyk(15%, 57.3%, 0%, 19.2%)
CIE-LABlab(52.45, 53.89, -46.53)
CIE-LCHlch(52.45, 71.19, 319.19°)
OKLaboklab(61.3% 0.1362 -0.13)
OKLCHoklch(61.3% 0.188 316.3)
XYZxyz(32.3078, 20.5508, 60.6454)
Luminance0.2055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58CE #77CE58
analogous
#7458CE #AF58CE #CE58B2
triadic
#AF58CE #CEAF58 #58CEAF
tetradic
#AF58CE #CE7458 #77CE58 #58B2CE
square
#AF58CE #CE7458 #77CE58 #58B2CE
split-complementary
#AF58CE #B2CE58 #58CE74
monochromatic
#6C2785 #9335B4 #AF58CE #C687DC #DCB7EA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF58CE#FFFFFF#000000##000000
##AF58CE1.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)
#3978D2
Deuteranopia (green-blind)
#5980CB
Tritanopia (blue-blind)
#AD6B8B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af58ce;
/* rgb */ color: rgb(175, 88, 206);
/* oklch */ color: oklch(61.3% 0.188 316.3);
Tailwind
colors: {
  custom: {
    50: '#ca8bdd',
    500: '#af58ce',
    950: '#000000',
  },
}
SCSS
$custom: #af58ce;
$custom-light: #ca8bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#af58ce",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 206
  },
  "hsl": {
    "h": 284.237,
    "s": 54.63,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61299,
    "c": 0.18825,
    "h": 316.3
  },
  "luminance": 0.2055
}

Semantic roles & 50–950 ramp

primary
#AF58CE
secondary
#B6D9A9
accent
#DE4A71
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF58CE

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

Preview Lab → · Contrast checker → · Palette generator →

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