#AF51D5#AF51D5

#AF51D5 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 60.8% C 0.205 H 314.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF51D5
RGBrgb(175, 81, 213)
HSLhsl(283, 61%, 58%)
HSVhsv(283, 62%, 84%)
CMYKcmyk(17.8%, 62%, 0%, 16.5%)
CIE-LABlab(51.61, 58.66, -51.86)
CIE-LCHlch(51.61, 78.30, 318.52°)
OKLaboklab(60.81% 0.145 -0.1455)
OKLCHoklch(60.81% 0.205 314.9)
XYZxyz(32.6299, 19.8040, 65.0416)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51D5 #77D551
analogous
#6D51D5 #AF51D5 #D551B9
triadic
#AF51D5 #D5AF51 #51D5AF
tetradic
#AF51D5 #D56D51 #77D551 #51B9D5
square
#AF51D5 #D56D51 #77D551 #51B9D5
split-complementary
#AF51D5 #B9D551 #51D56D
monochromatic
#6C218A #932DBC #AF51D5 #C682E1 #DCB4ED

Accessibility & contrast

On white

4.23
#AF51D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AF51D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51D5
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51D5#FFFFFF#000000##000000
##AF51D51.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2176D9
Deuteranopia (green-blind)
#4E7ED2
Tritanopia (blue-blind)
#AC698C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af51d5;
/* rgb */ color: rgb(175, 81, 213);
/* oklch */ color: oklch(60.8% 0.205 314.9);
Tailwind
colors: {
  custom: {
    50: '#ca87e2',
    500: '#af51d5',
    950: '#000000',
  },
}
SCSS
$custom: #af51d5;
$custom-light: #ca87e2;
$custom-dark: #000000;
JSON
{
  "hex": "#af51d5",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 282.727,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60814,
    "c": 0.20539,
    "h": 314.9
  },
  "luminance": 0.19803
}

Semantic roles & 50–950 ramp

primary
#AF51D5
secondary
#B6DBA6
accent
#E44472
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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