#AF52A4#AF52A4

#AF52A4 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.3% C 0.158 H 332.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF52A4
RGBrgb(175, 82, 164)
HSLhsl(307, 37%, 50%)
HSVhsv(307, 53%, 69%)
CMYKcmyk(0%, 53.1%, 6.3%, 31.4%)
CIE-LABlab(49.29, 48.86, -27.14)
CIE-LCHlch(49.29, 55.90, 330.95°)
OKLaboklab(58.3% 0.1396 -0.074)
OKLCHoklch(58.3% 0.158 332.1)
XYZxyz(27.3972, 17.8307, 37.1134)
Luminance0.1783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52A4 #52AF5D
analogous
#8C52AF #AF52A4 #AF5275
triadic
#AF52A4 #A4AF52 #52A4AF
tetradic
#AF52A4 #AF8C52 #52AF5D #5275AF
square
#AF52A4 #AF8C52 #52AF5D #5275AF
split-complementary
#AF52A4 #75AF52 #52AF8C
monochromatic
#5C2B56 #863E7D #AF52A4 #C27CBA #D6A6D0

Accessibility & contrast

On white

4.60
#AF52A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF52A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF52A4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52A4#FFFFFF#000000##FFFFFF
##AF52A41.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6DA7
Deuteranopia (green-blind)
#6A7AA1
Tritanopia (blue-blind)
#B65974
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af52a4;
/* rgb */ color: rgb(175, 82, 164);
/* oklch */ color: oklch(58.3% 0.158 332.1);
Tailwind
colors: {
  custom: {
    50: '#c987bf',
    500: '#af52a4',
    950: '#000000',
  },
}
SCSS
$custom: #af52a4;
$custom-light: #c987bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af52a4",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 164
  },
  "hsl": {
    "h": 307.097,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58302,
    "c": 0.15794,
    "h": 332.1
  },
  "luminance": 0.17829
}

Semantic roles & 50–950 ramp

primary
#AF52A4
secondary
#9AC39F
accent
#CD685B
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF52A4

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

Preview Lab → · Contrast checker → · Palette generator →

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