#AF66DC#AF66DC

#AF66DC is a light, vivid violet. Relative luminance 0.238; OKLCH L 64.0% C 0.182 H 310.8°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AF66DC
RGBrgb(175, 102, 220)
HSLhsl(277, 63%, 63%)
HSVhsv(277, 54%, 86%)
CMYKcmyk(20.5%, 53.6%, 0%, 13.7%)
CIE-LABlab(55.87, 49.77, -49.05)
CIE-LCHlch(55.87, 69.88, 315.42°)
OKLaboklab(64.05% 0.1188 -0.1374)
OKLCHoklch(64.05% 0.182 310.8)
XYZxyz(35.3465, 23.7847, 70.4252)
Luminance0.2378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF66DC #93DC66
analogous
#7466DC #AF66DC #DC66CE
triadic
#AF66DC #DCAF66 #66DCAF
tetradic
#AF66DC #DC7466 #93DC66 #66CEDC
square
#AF66DC #DC7466 #93DC66 #66CEDC
split-complementary
#AF66DC #CEDC66 #66DC74
monochromatic
#7325A2 #9534D1 #AF66DC #C998E7 #E3CAF3

Accessibility & contrast

On white

3.65
#AF66DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#AF66DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF66DC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF66DC#FFFFFF#000000##000000
##AF66DC1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4482E0
Deuteranopia (green-blind)
#5D87D9
Tritanopia (blue-blind)
#AA7A97
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af66dc;
/* rgb */ color: rgb(175, 102, 220);
/* oklch */ color: oklch(64.0% 0.182 310.8);
Tailwind
colors: {
  custom: {
    50: '#c994e7',
    500: '#af66dc',
    950: '#000000',
  },
}
SCSS
$custom: #af66dc;
$custom-light: #c994e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af66dc",
  "rgb": {
    "r": 175,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 277.119,
    "s": 62.766,
    "l": 63.137
  },
  "oklch": {
    "l": 0.6405,
    "c": 0.18162,
    "h": 310.8
  },
  "luminance": 0.23784
}

Semantic roles & 50–950 ramp

primary
#AF66DC
secondary
#CAE4BA
accent
#CB1B5E
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130D16
muted
#827E84

Preview Lab

Preview with #AF66DC

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

Preview Lab → · Contrast checker → · Palette generator →

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