#AF51BD#AF51BD

#AF51BD is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.4% C 0.182 H 322.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF51BD
RGBrgb(175, 81, 189)
HSLhsl(292, 45%, 53%)
HSVhsv(292, 57%, 74%)
CMYKcmyk(7.4%, 57.1%, 0%, 25.9%)
CIE-LABlab(50.30, 53.90, -40.16)
CIE-LCHlch(50.30, 67.22, 323.32°)
OKLaboklab(59.44% 0.1441 -0.1114)
OKLCHoklch(59.44% 0.182 322.3)
XYZxyz(29.8060, 18.6744, 50.1688)
Luminance0.1867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51BD #5FBD51
analogous
#7951BD #AF51BD #BD5195
triadic
#AF51BD #BDAF51 #51BDAF
tetradic
#AF51BD #BD7951 #5FBD51 #5195BD
square
#AF51BD #BD7951 #5FBD51 #5195BD
split-complementary
#AF51BD #95BD51 #51BD79
monochromatic
#62296B #8B3997 #AF51BD #C37DCE #D8AADF

Accessibility & contrast

On white

4.44
#AF51BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AF51BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51BD
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51BD#FFFFFF#000000##000000
##AF51BD1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E71C0
Deuteranopia (green-blind)
#5E7BBA
Tritanopia (blue-blind)
#B1607F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af51bd;
/* rgb */ color: rgb(175, 81, 189);
/* oklch */ color: oklch(59.4% 0.182 322.3);
Tailwind
colors: {
  custom: {
    50: '#c987d1',
    500: '#af51bd',
    950: '#000000',
  },
}
SCSS
$custom: #af51bd;
$custom-light: #c987d1;
$custom-dark: #000000;
JSON
{
  "hex": "#af51bd",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 292.222,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59437,
    "c": 0.18217,
    "h": 322.3
  },
  "luminance": 0.18673
}

Semantic roles & 50–950 ramp

primary
#AF51BD
secondary
#A4CC9E
accent
#D55364
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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