#AF55DF#AF55DF

#AF55DF is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.9% C 0.210 H 311.9°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF55DF
RGBrgb(175, 85, 223)
HSLhsl(279, 68%, 60%)
HSVhsv(279, 62%, 87%)
CMYKcmyk(21.5%, 61.9%, 0%, 12.5%)
CIE-LABlab(52.88, 58.87, -55.51)
CIE-LCHlch(52.88, 80.92, 316.69°)
OKLaboklab(61.92% 0.1401 -0.1562)
OKLCHoklch(61.92% 0.21 311.9)
XYZxyz(34.2446, 20.9395, 72.0355)
Luminance0.2094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55DF #85DF55
analogous
#6A55DF #AF55DF #DF55CA
triadic
#AF55DF #DFAF55 #55DFAF
tetradic
#AF55DF #DF6A55 #85DF55 #55CADF
square
#AF55DF #DF6A55 #85DF55 #55CADF
split-complementary
#AF55DF #CADF55 #55DF6A
monochromatic
#701D9C #9527D0 #AF55DF #C789E9 #DFBCF2

Accessibility & contrast

On white

4.05
#AF55DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#AF55DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55DF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55DF#FFFFFF#000000##000000
##AF55DF1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#197AE3
Deuteranopia (green-blind)
#4980DC
Tritanopia (blue-blind)
#A96F92
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af55df;
/* rgb */ color: rgb(175, 85, 223);
/* oklch */ color: oklch(61.9% 0.210 311.9);
Tailwind
colors: {
  custom: {
    50: '#ca8aea',
    500: '#af55df',
    950: '#000000',
  },
}
SCSS
$custom: #af55df;
$custom-light: #ca8aea;
$custom-dark: #000000;
JSON
{
  "hex": "#af55df",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 223
  },
  "hsl": {
    "h": 279.13,
    "s": 68.317,
    "l": 60.392
  },
  "oklch": {
    "l": 0.61921,
    "c": 0.20981,
    "h": 311.9
  },
  "luminance": 0.20939
}

Semantic roles & 50–950 ramp

primary
#AF55DF
secondary
#C0E2AE
accent
#D01556
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF55DF

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

Preview Lab → · Contrast checker → · Palette generator →

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