#AF52A2#AF52A2

#AF52A2 is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.2% C 0.156 H 333.0°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF52A2
RGBrgb(175, 82, 162)
HSLhsl(308, 37%, 50%)
HSVhsv(308, 53%, 69%)
CMYKcmyk(0%, 53.1%, 7.4%, 31.4%)
CIE-LABlab(49.20, 48.52, -26.10)
CIE-LCHlch(49.20, 55.09, 331.73°)
OKLaboklab(58.21% 0.1392 -0.071)
OKLCHoklch(58.21% 0.156 333)
XYZxyz(27.2180, 17.7590, 36.1697)
Luminance0.1776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF52A2 #52AF5F
analogous
#8D52AF #AF52A2 #AF5273
triadic
#AF52A2 #A2AF52 #52A2AF
tetradic
#AF52A2 #AF8D52 #52AF5F #5273AF
square
#AF52A2 #AF8D52 #52AF5F #5273AF
split-complementary
#AF52A2 #73AF52 #52AF8D
monochromatic
#5C2B55 #863E7C #AF52A2 #C27CB8 #D6A6CF

Accessibility & contrast

On white

4.61
#AF52A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#AF52A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF52A2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF52A2#FFFFFF#000000##FFFFFF
##AF52A21.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506CA5
Deuteranopia (green-blind)
#6B7A9F
Tritanopia (blue-blind)
#B65873
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af52a2;
/* rgb */ color: rgb(175, 82, 162);
/* oklch */ color: oklch(58.2% 0.156 333.0);
Tailwind
colors: {
  custom: {
    50: '#c987bd',
    500: '#af52a2',
    950: '#000000',
  },
}
SCSS
$custom: #af52a2;
$custom-light: #c987bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af52a2",
  "rgb": {
    "r": 175,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 308.387,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58209,
    "c": 0.15624,
    "h": 333
  },
  "luminance": 0.17757
}

Semantic roles & 50–950 ramp

primary
#AF52A2
secondary
#9AC39F
accent
#CD6B5B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF52A2

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

Preview Lab → · Contrast checker → · Palette generator →

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