#AF51DE#AF51DE

#AF51DE is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.4% C 0.214 H 312.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AF51DE
RGBrgb(175, 81, 222)
HSLhsl(280, 68%, 59%)
HSVhsv(280, 64%, 87%)
CMYKcmyk(21.2%, 63.5%, 0%, 12.9%)
CIE-LABlab(52.15, 60.52, -56.12)
CIE-LCHlch(52.15, 82.54, 317.16°)
OKLaboklab(61.37% 0.1448 -0.158)
OKLCHoklch(61.37% 0.214 312.5)
XYZxyz(33.8041, 20.2737, 71.2256)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51DE #80DE51
analogous
#6951DE #AF51DE #DE51C7
triadic
#AF51DE #DEAF51 #51DEAF
tetradic
#AF51DE #DE6951 #80DE51 #51C7DE
square
#AF51DE #DE6951 #80DE51 #51C7DE
split-complementary
#AF51DE #C7DE51 #51DE69
monochromatic
#6F1D98 #9427CB #AF51DE #C784E8 #DEB8F2

Accessibility & contrast

On white

4.15
#AF51DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AF51DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51DE
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51DE#FFFFFF#000000##000000
##AF51DE1.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0778E2
Deuteranopia (green-blind)
#467EDB
Tritanopia (blue-blind)
#AA6C90
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af51de;
/* rgb */ color: rgb(175, 81, 222);
/* oklch */ color: oklch(61.4% 0.214 312.5);
Tailwind
colors: {
  custom: {
    50: '#cb87e9',
    500: '#af51de',
    950: '#000000',
  },
}
SCSS
$custom: #af51de;
$custom-light: #cb87e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af51de",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 280,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61368,
    "c": 0.21427,
    "h": 312.5
  },
  "luminance": 0.20273
}

Semantic roles & 50–950 ramp

primary
#AF51DE
secondary
#BCE1AA
accent
#EB3D77
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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