#AF80DC#AF80DC

#AF80DC is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.2% C 0.140 H 306.6°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#AF80DC
RGBrgb(175, 128, 220)
HSLhsl(271, 57%, 68%)
HSVhsv(271, 42%, 86%)
CMYKcmyk(20.5%, 41.8%, 0%, 13.7%)
CIE-LABlab(61.41, 35.68, -40.30)
CIE-LCHlch(61.41, 53.83, 311.52°)
OKLaboklab(68.18% 0.0832 -0.1121)
OKLCHoklch(68.18% 0.14 306.6)
XYZxyz(38.3141, 29.7199, 71.4144)
Luminance0.2972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF80DC #ADDC80
analogous
#8180DC #AF80DC #DC80DB
triadic
#AF80DC #DCAF80 #80DCAF
tetradic
#AF80DC #DC8180 #ADDC80 #80DBDC
square
#AF80DC #DC8180 #ADDC80 #80DBDC
split-complementary
#AF80DC #DBDC80 #80DC81
monochromatic
#7231B1 #9150CF #AF80DC #CDB0E9 #EBE0F6

Accessibility & contrast

On white

3.02
#AF80DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#AF80DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF80DC
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF80DC#FFFFFF#000000##000000
##AF80DC1.003.026.946.94
#FFFFFF3.021.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B93DF
Deuteranopia (green-blind)
#7695DA
Tritanopia (blue-blind)
#A88FA4
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af80dc;
/* rgb */ color: rgb(175, 128, 220);
/* oklch */ color: oklch(68.2% 0.140 306.6);
Tailwind
colors: {
  custom: {
    50: '#c8a5e7',
    500: '#af80dc',
    950: '#000000',
  },
}
SCSS
$custom: #af80dc;
$custom-light: #c8a5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af80dc",
  "rgb": {
    "r": 175,
    "g": 128,
    "b": 220
  },
  "hsl": {
    "h": 270.652,
    "s": 56.79,
    "l": 68.235
  },
  "oklch": {
    "l": 0.68178,
    "c": 0.13959,
    "h": 306.6
  },
  "luminance": 0.2972
}

Semantic roles & 50–950 ramp

primary
#AF80DC
secondary
#DCEACE
accent
#C42171
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF80DC

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

Preview Lab → · Contrast checker → · Palette generator →

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