#AF51AE#AF51AE

#AF51AE is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.7% C 0.168 H 327.9°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF51AE
RGBrgb(175, 81, 174)
HSLhsl(301, 37%, 50%)
HSVhsv(301, 54%, 69%)
CMYKcmyk(0%, 53.7%, 0.6%, 31.4%)
CIE-LABlab(49.56, 51.12, -32.58)
CIE-LCHlch(49.56, 60.62, 327.49°)
OKLaboklab(58.65% 0.1425 -0.0895)
OKLCHoklch(58.65% 0.168 327.9)
XYZxyz(28.2612, 18.0565, 42.0329)
Luminance0.1805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51AE #51AF52
analogous
#8151AF #AF51AE #AF517F
triadic
#AF51AE #AEAF51 #51AEAF
tetradic
#AF51AE #AF8151 #51AF52 #517FAF
square
#AF51AE #AF8151 #51AF52 #517FAF
split-complementary
#AF51AE #7FAF51 #51AF81
monochromatic
#5C2A5B #853D85 #AF51AE #C27BC2 #D6A5D5

Accessibility & contrast

On white

4.55
#AF51AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#AF51AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51AE
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51AE#FFFFFF#000000##000000
##AF51AE1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#486EB1
Deuteranopia (green-blind)
#667AAB
Tritanopia (blue-blind)
#B45B78
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af51ae;
/* rgb */ color: rgb(175, 81, 174);
/* oklch */ color: oklch(58.7% 0.168 327.9);
Tailwind
colors: {
  custom: {
    50: '#c986c6',
    500: '#af51ae',
    950: '#000000',
  },
}
SCSS
$custom: #af51ae;
$custom-light: #c986c6;
$custom-dark: #000000;
JSON
{
  "hex": "#af51ae",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 300.638,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58654,
    "c": 0.16832,
    "h": 327.9
  },
  "luminance": 0.18055
}

Semantic roles & 50–950 ramp

primary
#AF51AE
secondary
#99C399
accent
#CD5C5B
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF51AE

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

Preview Lab → · Contrast checker → · Palette generator →

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