#AF66DF#AF66DF

#AF66DF is a light, vivid violet. Relative luminance 0.239; OKLCH L 64.2% C 0.185 H 310.0°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF66DF
RGBrgb(175, 102, 223)
HSLhsl(276, 65%, 64%)
HSVhsv(276, 54%, 87%)
CMYKcmyk(21.5%, 54.3%, 0%, 12.5%)
CIE-LABlab(56.03, 50.43, -50.48)
CIE-LCHlch(56.03, 71.35, 314.97°)
OKLaboklab(64.22% 0.119 -0.1416)
OKLCHoklch(64.22% 0.185 310)
XYZxyz(35.7473, 23.9451, 72.5364)
Luminance0.2394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF66DF #96DF66
analogous
#7266DF #AF66DF #DF66D2
triadic
#AF66DF #DFAF66 #66DFAF
tetradic
#AF66DF #DF7266 #96DF66 #66D2DF
square
#AF66DF #DF7266 #96DF66 #66D2DF
split-complementary
#AF66DF #D2DF66 #66DF72
monochromatic
#7323A8 #9533D4 #AF66DF #C999EA #E4CBF4

Accessibility & contrast

On white

3.63
#AF66DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#AF66DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF66DF
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF66DF#FFFFFF#000000##000000
##AF66DF1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4283E3
Deuteranopia (green-blind)
#5B88DC
Tritanopia (blue-blind)
#A97B99
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af66df;
/* rgb */ color: rgb(175, 102, 223);
/* oklch */ color: oklch(64.2% 0.185 310.0);
Tailwind
colors: {
  custom: {
    50: '#ca94e9',
    500: '#af66df',
    950: '#000000',
  },
}
SCSS
$custom: #af66df;
$custom-light: #ca94e9;
$custom-dark: #000000;
JSON
{
  "hex": "#af66df",
  "rgb": {
    "r": 175,
    "g": 102,
    "b": 223
  },
  "hsl": {
    "h": 276.198,
    "s": 65.405,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64221,
    "c": 0.18493,
    "h": 310
  },
  "luminance": 0.23944
}

Semantic roles & 50–950 ramp

primary
#AF66DF
secondary
#CCE6BB
accent
#CD1860
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130D16
muted
#827E84

Preview Lab

Preview with #AF66DF

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

Preview Lab → · Contrast checker → · Palette generator →

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