#AF58BF#AF58BF

#AF58BF is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.5% C 0.173 H 321.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF58BF
RGBrgb(175, 88, 191)
HSLhsl(291, 45%, 55%)
HSVhsv(291, 54%, 75%)
CMYKcmyk(8.4%, 53.9%, 0%, 25.1%)
CIE-LABlab(51.67, 50.88, -39.15)
CIE-LCHlch(51.67, 64.20, 322.42°)
OKLaboklab(60.47% 0.1351 -0.1085)
OKLCHoklch(60.47% 0.173 321.2)
XYZxyz(30.5718, 19.8564, 51.5024)
Luminance0.1986 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58BF #68BF58
analogous
#7C58BF #AF58BF #BF589B
triadic
#AF58BF #BFAF58 #58BFAF
tetradic
#AF58BF #BF7C58 #68BF58 #589BBF
square
#AF58BF #BF7C58 #68BF58 #589BBF
split-complementary
#AF58BF #9BBF58 #58BF7C
monochromatic
#662B71 #8E3C9D #AF58BF #C484D0 #D9B0E1

Accessibility & contrast

On white

4.22
#AF58BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#AF58BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58BF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58BF#FFFFFF#000000##000000
##AF58BF1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4675C2
Deuteranopia (green-blind)
#627EBC
Tritanopia (blue-blind)
#B16683
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af58bf;
/* rgb */ color: rgb(175, 88, 191);
/* oklch */ color: oklch(60.5% 0.173 321.2);
Tailwind
colors: {
  custom: {
    50: '#c98bd3',
    500: '#af58bf',
    950: '#000000',
  },
}
SCSS
$custom: #af58bf;
$custom-light: #c98bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#af58bf",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 290.68,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.60474,
    "c": 0.17326,
    "h": 321.2
  },
  "luminance": 0.19855
}

Semantic roles & 50–950 ramp

primary
#AF58BF
secondary
#AACFA4
accent
#D45468
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF58BF

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

Preview Lab → · Contrast checker → · Palette generator →

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