#AF51CF#AF51CF

#AF51CF is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.5% C 0.200 H 316.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AF51CF
RGBrgb(175, 81, 207)
HSLhsl(285, 57%, 56%)
HSVhsv(285, 61%, 81%)
CMYKcmyk(15.5%, 60.9%, 0%, 18.8%)
CIE-LABlab(51.27, 57.44, -48.98)
CIE-LCHlch(51.27, 75.49, 319.54°)
OKLaboklab(60.46% 0.145 -0.1371)
OKLCHoklch(60.46% 0.2 316.6)
XYZxyz(31.8824, 19.5050, 61.1048)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51CF #71CF51
analogous
#7051CF #AF51CF #CF51B0
triadic
#AF51CF #CFAF51 #51CFAF
tetradic
#AF51CF #CF7051 #71CF51 #51B0CF
square
#AF51CF #CF7051 #71CF51 #51B0CF
split-complementary
#AF51CF #B0CF51 #51CF70
monochromatic
#6A2482 #9131B2 #AF51CF #C581DC #DBB1E9

Accessibility & contrast

On white

4.29
#AF51CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AF51CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51CF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51CF#FFFFFF#000000##000000
##AF51CF1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B74D3
Deuteranopia (green-blind)
#537DCC
Tritanopia (blue-blind)
#AD6789
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af51cf;
/* rgb */ color: rgb(175, 81, 207);
/* oklch */ color: oklch(60.5% 0.200 316.6);
Tailwind
colors: {
  custom: {
    50: '#ca87de',
    500: '#af51cf',
    950: '#000000',
  },
}
SCSS
$custom: #af51cf;
$custom-light: #ca87de;
$custom-dark: #000000;
JSON
{
  "hex": "#af51cf",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 284.762,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60456,
    "c": 0.19951,
    "h": 316.6
  },
  "luminance": 0.19504
}

Semantic roles & 50–950 ramp

primary
#AF51CF
secondary
#B1D8A4
accent
#E0486E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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