#AF52BB#AF52BB

#AF52BB is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.5% C 0.179 H 322.9°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF52BB
RGBrgb(175, 82, 187)
HSLhsl(293, 44%, 53%)
HSVhsv(293, 56%, 73%)
CMYKcmyk(6.4%, 56.1%, 0%, 26.7%)
CIE-LABlab(50.38, 53.04, -38.88)
CIE-LCHlch(50.38, 65.77, 323.76°)
OKLaboklab(59.46% 0.1427 -0.1077)
OKLCHoklch(59.46% 0.179 322.9)
XYZxyz(29.6652, 18.7379, 49.0583)
Luminance0.1874 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52BB #5EBB52
analogous
#7B52BB #AF52BB #BB5292
triadic
#AF52BB #BBAF52 #52BBAF
tetradic
#AF52BB #BB7B52 #5EBB52 #5292BB
square
#AF52BB #BB7B52 #5EBB52 #5292BB
split-complementary
#AF52BB #92BB52 #52BB7B
monochromatic
#622969 #8B3B95 #AF52BB #C37ECC #D8AADE

Accessibility & contrast

On white

4.42
#AF52BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AF52BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF52BB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52BB#FFFFFF#000000##000000
##AF52BB1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4171BE
Deuteranopia (green-blind)
#607CB8
Tritanopia (blue-blind)
#B2617F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af52bb;
/* rgb */ color: rgb(175, 82, 187);
/* oklch */ color: oklch(59.5% 0.179 322.9);
Tailwind
colors: {
  custom: {
    50: '#c987d0',
    500: '#af52bb',
    950: '#000000',
  },
}
SCSS
$custom: #af52bb;
$custom-light: #c987d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af52bb",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 293.143,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59458,
    "c": 0.17875,
    "h": 322.9
  },
  "luminance": 0.18736
}

Semantic roles & 50–950 ramp

primary
#AF52BB
secondary
#A3CB9E
accent
#D35463
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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