#AF82DB#AF82DB

#AF82DB is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.5% C 0.135 H 306.4°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#AF82DB
RGBrgb(175, 130, 219)
HSLhsl(270, 55%, 68%)
HSVhsv(270, 41%, 86%)
CMYKcmyk(20.1%, 40.6%, 0%, 14.1%)
CIE-LABlab(61.82, 34.34, -39.10)
CIE-LCHlch(61.82, 52.04, 311.29°)
OKLaboklab(68.47% 0.0802 -0.1086)
OKLCHoklch(68.47% 0.135 306.4)
XYZxyz(38.4455, 30.1940, 70.8068)
Luminance0.3019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF82DB #AEDB82
analogous
#8282DB #AF82DB #DB82DB
triadic
#AF82DB #DBAF82 #82DBAF
tetradic
#AF82DB #DB8282 #AEDB82 #82DBDB
square
#AF82DB #DB8282 #AEDB82 #82DBDB
split-complementary
#AF82DB #DBDB82 #82DB82
monochromatic
#7233B0 #9152CD #AF82DB #CDB2E9 #ECE1F6

Accessibility & contrast

On white

2.98
#AF82DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#AF82DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF82DB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF82DB#FFFFFF#000000##000000
##AF82DB1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E94DE
Deuteranopia (green-blind)
#7896D9
Tritanopia (blue-blind)
#A990A4
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af82db;
/* rgb */ color: rgb(175, 130, 219);
/* oklch */ color: oklch(68.5% 0.135 306.4);
Tailwind
colors: {
  custom: {
    50: '#c8a7e6',
    500: '#af82db',
    950: '#000000',
  },
}
SCSS
$custom: #af82db;
$custom-light: #c8a7e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af82db",
  "rgb": {
    "r": 175,
    "g": 130,
    "b": 219
  },
  "hsl": {
    "h": 270.337,
    "s": 55.28,
    "l": 68.431
  },
  "oklch": {
    "l": 0.68471,
    "c": 0.13502,
    "h": 306.4
  },
  "luminance": 0.30194
}

Semantic roles & 50–950 ramp

primary
#AF82DB
secondary
#DCEACF
accent
#C32372
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF82DB

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

Preview Lab → · Contrast checker → · Palette generator →

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