#AF55DC#AF55DC

#AF55DC is a mid, highly saturated purple. Relative luminance 0.208; OKLCH L 61.7% C 0.207 H 312.7°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AF55DC
RGBrgb(175, 85, 220)
HSLhsl(280, 66%, 60%)
HSVhsv(280, 61%, 86%)
CMYKcmyk(20.5%, 61.4%, 0%, 13.7%)
CIE-LABlab(52.71, 58.24, -54.09)
CIE-LCHlch(52.71, 79.48, 317.12°)
OKLaboklab(61.74% 0.1401 -0.1521)
OKLCHoklch(61.74% 0.207 312.7)
XYZxyz(33.8437, 20.7792, 69.9242)
Luminance0.2078 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55DC #82DC55
analogous
#6C55DC #AF55DC #DC55C6
triadic
#AF55DC #DCAF55 #55DCAF
tetradic
#AF55DC #DC6C55 #82DC55 #55C6DC
square
#AF55DC #DC6C55 #82DC55 #55C6DC
split-complementary
#AF55DC #C6DC55 #55DC6C
monochromatic
#6F1F97 #952ACA #AF55DC #C788E6 #DFBBF1

Accessibility & contrast

On white

4.07
#AF55DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#AF55DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55DC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55DC#FFFFFF#000000##000000
##AF55DC1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2079E0
Deuteranopia (green-blind)
#4C80D9
Tritanopia (blue-blind)
#AA6E91
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af55dc;
/* rgb */ color: rgb(175, 85, 220);
/* oklch */ color: oklch(61.7% 0.207 312.7);
Tailwind
colors: {
  custom: {
    50: '#ca8ae7',
    500: '#af55dc',
    950: '#000000',
  },
}
SCSS
$custom: #af55dc;
$custom-light: #ca8ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#af55dc",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 220
  },
  "hsl": {
    "h": 280,
    "s": 65.854,
    "l": 59.804
  },
  "oklch": {
    "l": 0.61737,
    "c": 0.20678,
    "h": 312.7
  },
  "luminance": 0.20778
}

Semantic roles & 50–950 ramp

primary
#AF55DC
secondary
#BEE0AC
accent
#E93F78
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF55DC

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

Preview Lab → · Contrast checker → · Palette generator →

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