#AF58CF#AF58CF

#AF58CF is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.4% C 0.189 H 316.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF58CF
RGBrgb(175, 88, 207)
HSLhsl(284, 55%, 58%)
HSVhsv(284, 57%, 81%)
CMYKcmyk(15.5%, 57.5%, 0%, 18.8%)
CIE-LABlab(52.51, 54.09, -47.01)
CIE-LCHlch(52.51, 71.67, 319.00°)
OKLaboklab(61.36% 0.1362 -0.1314)
OKLCHoklch(61.36% 0.189 316)
XYZxyz(32.4297, 20.5995, 61.2872)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58CF #78CF58
analogous
#7458CF #AF58CF #CF58B3
triadic
#AF58CF #CFAF58 #58CFAF
tetradic
#AF58CF #CF7458 #78CF58 #58B3CF
square
#AF58CF #CF7458 #78CF58 #58B3CF
split-complementary
#AF58CF #B3CF58 #58CF74
monochromatic
#6C2786 #9334B6 #AF58CF #C688DD #DDB7EA

Accessibility & contrast

On white

4.10
#AF58CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#AF58CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58CF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58CF#FFFFFF#000000##000000
##AF58CF1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3878D3
Deuteranopia (green-blind)
#5980CC
Tritanopia (blue-blind)
#AD6C8B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af58cf;
/* rgb */ color: rgb(175, 88, 207);
/* oklch */ color: oklch(61.4% 0.189 316.0);
Tailwind
colors: {
  custom: {
    50: '#ca8bde',
    500: '#af58cf',
    950: '#000000',
  },
}
SCSS
$custom: #af58cf;
$custom-light: #ca8bde;
$custom-dark: #000000;
JSON
{
  "hex": "#af58cf",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 207
  },
  "hsl": {
    "h": 283.866,
    "s": 55.349,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61356,
    "c": 0.18926,
    "h": 316
  },
  "luminance": 0.20598
}

Semantic roles & 50–950 ramp

primary
#AF58CF
secondary
#B6D9AA
accent
#DF4971
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF58CF

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

Preview Lab → · Contrast checker → · Palette generator →

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