#AF55DE#AF55DE

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

Color values

HEX#AF55DE
RGBrgb(175, 85, 222)
HSLhsl(279, 67%, 60%)
HSVhsv(279, 62%, 87%)
CMYKcmyk(21.2%, 61.7%, 0%, 12.9%)
CIE-LABlab(52.82, 58.66, -55.04)
CIE-LCHlch(52.82, 80.44, 316.83°)
OKLaboklab(61.86% 0.1401 -0.1548)
OKLCHoklch(61.86% 0.209 312.1)
XYZxyz(34.1101, 20.8858, 71.3276)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55DE #84DE55
analogous
#6A55DE #AF55DE #DE55C9
triadic
#AF55DE #DEAF55 #55DEAF
tetradic
#AF55DE #DE6A55 #84DE55 #55C9DE
square
#AF55DE #DE6A55 #84DE55 #55C9DE
split-complementary
#AF55DE #C9DE55 #55DE6A
monochromatic
#701E9B #9528CE #AF55DE #C788E8 #DFBCF2

Accessibility & contrast

On white

4.06
#AF55DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AF55DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55DE
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55DE#FFFFFF#000000##000000
##AF55DE1.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B7AE2
Deuteranopia (green-blind)
#4A80DB
Tritanopia (blue-blind)
#AA6F92
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af55de;
/* rgb */ color: rgb(175, 85, 222);
/* oklch */ color: oklch(61.9% 0.209 312.1);
Tailwind
colors: {
  custom: {
    50: '#ca8ae9',
    500: '#af55de',
    950: '#000000',
  },
}
SCSS
$custom: #af55de;
$custom-light: #ca8ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#af55de",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 222
  },
  "hsl": {
    "h": 279.416,
    "s": 67.488,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61859,
    "c": 0.2088,
    "h": 312.1
  },
  "luminance": 0.20885
}

Semantic roles & 50–950 ramp

primary
#AF55DE
secondary
#BFE2AD
accent
#CF1656
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AF55DE

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

Preview Lab → · Contrast checker → · Palette generator →

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