#AF58CD#AF58CD

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

Color values

HEX#AF58CD
RGBrgb(175, 88, 205)
HSLhsl(285, 54%, 57%)
HSVhsv(285, 57%, 80%)
CMYKcmyk(14.6%, 57.1%, 0%, 19.6%)
CIE-LABlab(52.40, 53.68, -46.04)
CIE-LCHlch(52.40, 70.72, 319.38°)
OKLaboklab(61.24% 0.1361 -0.1286)
OKLCHoklch(61.24% 0.187 316.6)
XYZxyz(32.1867, 20.5023, 60.0076)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58CD #76CD58
analogous
#7458CD #AF58CD #CD58B1
triadic
#AF58CD #CDAF58 #58CDAF
tetradic
#AF58CD #CD7458 #76CD58 #58B1CD
square
#AF58CD #CD7458 #76CD58 #58B1CD
split-complementary
#AF58CD #B1CD58 #58CD74
monochromatic
#6C2783 #9235B2 #AF58CD #C687DB #DCB6E9

Accessibility & contrast

On white

4.12
#AF58CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AF58CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58CD
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58CD#FFFFFF#000000##000000
##AF58CD1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af58cd;
/* rgb */ color: rgb(175, 88, 205);
/* oklch */ color: oklch(61.2% 0.187 316.6);
Tailwind
colors: {
  custom: {
    50: '#ca8bdd',
    500: '#af58cd',
    950: '#000000',
  },
}
SCSS
$custom: #af58cd;
$custom-light: #ca8bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#af58cd",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 284.615,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61242,
    "c": 0.18723,
    "h": 316.6
  },
  "luminance": 0.20501
}

Semantic roles & 50–950 ramp

primary
#AF58CD
secondary
#B5D8A9
accent
#DD4B70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF58CD

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

Preview Lab → · Contrast checker → · Palette generator →

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