#AF51CE#AF51CE

#AF51CE is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.4% C 0.199 H 316.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AF51CE
RGBrgb(175, 81, 206)
HSLhsl(285, 56%, 56%)
HSVhsv(285, 61%, 81%)
CMYKcmyk(15%, 60.7%, 0%, 19.2%)
CIE-LABlab(51.22, 57.24, -48.50)
CIE-LCHlch(51.22, 75.02, 319.73°)
OKLaboklab(60.4% 0.1449 -0.1357)
OKLCHoklch(60.4% 0.199 316.9)
XYZxyz(31.7606, 19.4562, 60.4630)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51CE #70CE51
analogous
#7151CE #AF51CE #CE51AF
triadic
#AF51CE #CEAF51 #51CEAF
tetradic
#AF51CE #CE7151 #70CE51 #51AFCE
square
#AF51CE #CE7151 #70CE51 #51AFCE
split-complementary
#AF51CE #AFCE51 #51CE71
monochromatic
#6A2480 #9132B0 #AF51CE #C581DB #DBB1E9

Accessibility & contrast

On white

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

On black

4.89
#AF51CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51CE
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51CE#FFFFFF#000000##000000
##AF51CE1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C74D2
Deuteranopia (green-blind)
#547DCB
Tritanopia (blue-blind)
#AE6688
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af51ce;
/* rgb */ color: rgb(175, 81, 206);
/* oklch */ color: oklch(60.4% 0.199 316.9);
Tailwind
colors: {
  custom: {
    50: '#ca87dd',
    500: '#af51ce',
    950: '#000000',
  },
}
SCSS
$custom: #af51ce;
$custom-light: #ca87dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af51ce",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 285.12,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60397,
    "c": 0.19853,
    "h": 316.9
  },
  "luminance": 0.19455
}

Semantic roles & 50–950 ramp

primary
#AF51CE
secondary
#B0D7A4
accent
#DF486E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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