#AF51BF#AF51BF

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

Color values

HEX#AF51BF
RGBrgb(175, 81, 191)
HSLhsl(291, 46%, 53%)
HSVhsv(291, 58%, 75%)
CMYKcmyk(8.4%, 57.6%, 0%, 25.1%)
CIE-LABlab(50.41, 54.29, -41.15)
CIE-LCHlch(50.41, 68.12, 322.84°)
OKLaboklab(59.55% 0.1443 -0.1143)
OKLCHoklch(59.55% 0.184 321.6)
XYZxyz(30.0246, 18.7618, 51.3200)
Luminance0.1876 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51BF #61BF51
analogous
#7851BF #AF51BF #BF5198
triadic
#AF51BF #BFAF51 #51BFAF
tetradic
#AF51BF #BF7851 #61BF51 #5198BF
square
#AF51BF #BF7851 #61BF51 #5198BF
split-complementary
#AF51BF #98BF51 #51BF78
monochromatic
#63286D #8C399A #AF51BF #C47ECF #D8AAE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF51BF#FFFFFF#000000##000000
##AF51BF1.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)
#3C71C2
Deuteranopia (green-blind)
#5D7CBC
Tritanopia (blue-blind)
#B16180
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af51bf;
/* rgb */ color: rgb(175, 81, 191);
/* oklch */ color: oklch(59.5% 0.184 321.6);
Tailwind
colors: {
  custom: {
    50: '#c987d3',
    500: '#af51bf',
    950: '#000000',
  },
}
SCSS
$custom: #af51bf;
$custom-light: #c987d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af51bf",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 291.273,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59546,
    "c": 0.18407,
    "h": 321.6
  },
  "luminance": 0.1876
}

Semantic roles & 50–950 ramp

primary
#AF51BF
secondary
#A5CE9E
accent
#D65265
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83

Preview Lab

Preview with #AF51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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