#AF58BC#AF58BC

#AF58BC is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.3% C 0.170 H 322.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF58BC
RGBrgb(175, 88, 188)
HSLhsl(292, 43%, 54%)
HSVhsv(292, 53%, 74%)
CMYKcmyk(6.9%, 53.2%, 0%, 26.3%)
CIE-LABlab(51.53, 50.30, -37.65)
CIE-LCHlch(51.53, 62.83, 323.18°)
OKLaboklab(60.32% 0.1347 -0.1042)
OKLCHoklch(60.32% 0.17 322.3)
XYZxyz(30.2451, 19.7256, 49.7815)
Luminance0.1972 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58BC #65BC58
analogous
#7D58BC #AF58BC #BC5897
triadic
#AF58BC #BCAF58 #58BCAF
tetradic
#AF58BC #BC7D58 #65BC58 #5897BC
square
#AF58BC #BC7D58 #65BC58 #5897BC
split-complementary
#AF58BC #97BC58 #58BC7D
monochromatic
#652C6E #8D3E99 #AF58BC #C484CE #D9AFDF

Accessibility & contrast

On white

4.25
#AF58BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#AF58BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF58BC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF58BC#FFFFFF#000000##000000
##AF58BC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4874BF
Deuteranopia (green-blind)
#647EB9
Tritanopia (blue-blind)
#B16582
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af58bc;
/* rgb */ color: rgb(175, 88, 188);
/* oklch */ color: oklch(60.3% 0.170 322.3);
Tailwind
colors: {
  custom: {
    50: '#c98bd0',
    500: '#af58bc',
    950: '#000000',
  },
}
SCSS
$custom: #af58bc;
$custom-light: #c98bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#af58bc",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 292.2,
    "s": 42.735,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60316,
    "c": 0.17031,
    "h": 322.3
  },
  "luminance": 0.19724
}

Semantic roles & 50–950 ramp

primary
#AF58BC
secondary
#A8CDA3
accent
#D35566
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF58BC

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

Preview Lab → · Contrast checker → · Palette generator →

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