#AF51D2#AF51D2

#AF51D2 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 60.6% C 0.202 H 315.7°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF51D2
RGBrgb(175, 81, 210)
HSLhsl(284, 59%, 57%)
HSVhsv(284, 61%, 82%)
CMYKcmyk(16.7%, 61.4%, 0%, 17.6%)
CIE-LABlab(51.44, 58.05, -50.42)
CIE-LCHlch(51.44, 76.89, 319.02°)
OKLaboklab(60.63% 0.145 -0.1413)
OKLCHoklch(60.63% 0.202 315.7)
XYZxyz(32.2527, 19.6531, 63.0547)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51D2 #74D251
analogous
#6F51D2 #AF51D2 #D251B5
triadic
#AF51D2 #D2AF51 #51D2AF
tetradic
#AF51D2 #D26F51 #74D251 #51B5D2
square
#AF51D2 #D26F51 #74D251 #51B5D2
split-complementary
#AF51D2 #B5D251 #51D26F
monochromatic
#6B2386 #922FB7 #AF51D2 #C582DF #DCB2EB

Accessibility & contrast

On white

4.26
#AF51D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF51D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51D2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51D2#FFFFFF#000000##000000
##AF51D21.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2775D6
Deuteranopia (green-blind)
#517DCF
Tritanopia (blue-blind)
#AD688A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af51d2;
/* rgb */ color: rgb(175, 81, 210);
/* oklch */ color: oklch(60.6% 0.202 315.7);
Tailwind
colors: {
  custom: {
    50: '#ca87e0',
    500: '#af51d2',
    950: '#000000',
  },
}
SCSS
$custom: #af51d2;
$custom-light: #ca87e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af51d2",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 283.721,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60634,
    "c": 0.20245,
    "h": 315.7
  },
  "luminance": 0.19652
}

Semantic roles & 50–950 ramp

primary
#AF51D2
secondary
#B3DAA5
accent
#E24670
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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