#AF58BB#AF58BB

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

Color values

HEX#AF58BB
RGBrgb(175, 88, 187)
HSLhsl(293, 42%, 54%)
HSVhsv(293, 53%, 73%)
CMYKcmyk(6.4%, 52.9%, 0%, 26.7%)
CIE-LABlab(51.48, 50.10, -37.15)
CIE-LCHlch(51.48, 62.38, 323.44°)
OKLaboklab(60.26% 0.1346 -0.1027)
OKLCHoklch(60.26% 0.169 322.6)
XYZxyz(30.1376, 19.6827, 49.2157)
Luminance0.1968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF58BB #64BB58
analogous
#7E58BB #AF58BB #BB5896
triadic
#AF58BB #BBAF58 #58BBAF
tetradic
#AF58BB #BB7E58 #64BB58 #5896BB
square
#AF58BB #BB7E58 #64BB58 #5896BB
split-complementary
#AF58BB #96BB58 #58BB7E
monochromatic
#652C6C #8D3E98 #AF58BB #C483CD #D9AFDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF58BB#FFFFFF#000000##000000
##AF58BB1.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)
#4974BE
Deuteranopia (green-blind)
#647EB8
Tritanopia (blue-blind)
#B16581
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af58bb;
/* rgb */ color: rgb(175, 88, 187);
/* oklch */ color: oklch(60.3% 0.169 322.6);
Tailwind
colors: {
  custom: {
    50: '#c98bd0',
    500: '#af58bb',
    950: '#000000',
  },
}
SCSS
$custom: #af58bb;
$custom-light: #c98bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#af58bb",
  "rgb": {
    "r": 175,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 292.727,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60264,
    "c": 0.16934,
    "h": 322.6
  },
  "luminance": 0.19681
}

Semantic roles & 50–950 ramp

primary
#AF58BB
secondary
#A7CDA2
accent
#D25665
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF58BB

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

Preview Lab → · Contrast checker → · Palette generator →

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