#AF55D9#AF55D9

#AF55D9 is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.6% C 0.204 H 313.5°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF55D9
RGBrgb(175, 85, 217)
HSLhsl(281, 63%, 59%)
HSVhsv(281, 61%, 85%)
CMYKcmyk(19.4%, 60.8%, 0%, 14.9%)
CIE-LABlab(52.53, 57.61, -52.67)
CIE-LCHlch(52.53, 78.06, 317.57°)
OKLaboklab(61.55% 0.1402 -0.1479)
OKLCHoklch(61.55% 0.204 313.5)
XYZxyz(33.4499, 20.6217, 67.8505)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55D9 #7FD955
analogous
#6D55D9 #AF55D9 #D955C1
triadic
#AF55D9 #D9AF55 #55D9AF
tetradic
#AF55D9 #D96D55 #7FD955 #55C1D9
square
#AF55D9 #D96D55 #7FD955 #55C1D9
split-complementary
#AF55D9 #C1D955 #55D96D
monochromatic
#6F2193 #942CC5 #AF55D9 #C787E4 #DEB9EF

Accessibility & contrast

On white

4.10
#AF55D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#AF55D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55D9
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55D9#FFFFFF#000000##000000
##AF55D91.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2578DD
Deuteranopia (green-blind)
#4F80D6
Tritanopia (blue-blind)
#AB6D8F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af55d9;
/* rgb */ color: rgb(175, 85, 217);
/* oklch */ color: oklch(61.6% 0.204 313.5);
Tailwind
colors: {
  custom: {
    50: '#ca8ae5',
    500: '#af55d9',
    950: '#000000',
  },
}
SCSS
$custom: #af55d9;
$custom-light: #ca8ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#af55d9",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 217
  },
  "hsl": {
    "h": 280.909,
    "s": 63.462,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61554,
    "c": 0.20375,
    "h": 313.5
  },
  "luminance": 0.20621
}

Semantic roles & 50–950 ramp

primary
#AF55D9
secondary
#BCDFAB
accent
#E64176
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF55D9

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

Preview Lab → · Contrast checker → · Palette generator →

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