#AF82DA#AF82DA

#AF82DA is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.4% C 0.134 H 306.7°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#AF82DA
RGBrgb(175, 130, 218)
HSLhsl(271, 54%, 68%)
HSVhsv(271, 40%, 85%)
CMYKcmyk(19.7%, 40.4%, 0%, 14.5%)
CIE-LABlab(61.78, 34.11, -38.61)
CIE-LCHlch(61.78, 51.52, 311.46°)
OKLaboklab(68.42% 0.08 -0.1072)
OKLCHoklch(68.42% 0.134 306.7)
XYZxyz(38.3142, 30.1415, 70.1155)
Luminance0.3014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF82DA #ADDA82
analogous
#8382DA #AF82DA #DA82D9
triadic
#AF82DA #DAAF82 #82DAAF
tetradic
#AF82DA #DA8382 #ADDA82 #82D9DA
square
#AF82DA #DA8382 #ADDA82 #82D9DA
split-complementary
#AF82DA #D9DA82 #82DA83
monochromatic
#7234AE #9153CC #AF82DA #CDB1E8 #EBE0F6

Accessibility & contrast

On white

2.99
#AF82DA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#AF82DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF82DA
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF82DA#FFFFFF#000000##000000
##AF82DA1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E94DD
Deuteranopia (green-blind)
#7996D8
Tritanopia (blue-blind)
#A990A4
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af82da;
/* rgb */ color: rgb(175, 130, 218);
/* oklch */ color: oklch(68.4% 0.134 306.7);
Tailwind
colors: {
  custom: {
    50: '#c8a7e6',
    500: '#af82da',
    950: '#000000',
  },
}
SCSS
$custom: #af82da;
$custom-light: #c8a7e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af82da",
  "rgb": {
    "r": 175,
    "g": 130,
    "b": 218
  },
  "hsl": {
    "h": 270.682,
    "s": 54.321,
    "l": 68.235
  },
  "oklch": {
    "l": 0.68422,
    "c": 0.13377,
    "h": 306.7
  },
  "luminance": 0.30141
}

Semantic roles & 50–950 ramp

primary
#AF82DA
secondary
#DCE9CF
accent
#C22471
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF82DA

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

Preview Lab → · Contrast checker → · Palette generator →

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