#AF66E5#AF66E5

#AF66E5 is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.6% C 0.192 H 308.5°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AF66E5
RGBrgb(175, 102, 229)
HSLhsl(274, 71%, 65%)
HSVhsv(274, 55%, 90%)
CMYKcmyk(23.6%, 55.5%, 0%, 10.2%)
CIE-LABlab(56.36, 51.76, -53.33)
CIE-LCHlch(56.36, 74.32, 314.15°)
OKLaboklab(64.57% 0.1193 -0.1499)
OKLCHoklch(64.57% 0.192 308.5)
XYZxyz(36.5706, 24.2744, 76.8724)
Luminance0.2427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF66E5 #9CE566
analogous
#6F66E5 #AF66E5 #E566DC
triadic
#AF66E5 #E5AF66 #66E5AF
tetradic
#AF66E5 #E56F66 #9CE566 #66DCE5
square
#AF66E5 #E56F66 #9CE566 #66DCE5
split-complementary
#AF66E5 #DCE566 #66E56F
monochromatic
#731EB2 #9432DC #AF66E5 #CA9AEE #E6CFF7

Accessibility & contrast

On white

3.59
#AF66E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#AF66E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF66E5
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF66E5#FFFFFF#000000##000000
##AF66E51.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C84E9
Deuteranopia (green-blind)
#5688E2
Tritanopia (blue-blind)
#A77D9C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #af66e5;
/* rgb */ color: rgb(175, 102, 229);
/* oklch */ color: oklch(64.6% 0.192 308.5);
Tailwind
colors: {
  custom: {
    50: '#ca94ee',
    500: '#af66e5',
    950: '#000000',
  },
}
SCSS
$custom: #af66e5;
$custom-light: #ca94ee;
$custom-dark: #000000;
JSON
{
  "hex": "#af66e5",
  "rgb": {
    "r": 175,
    "g": 102,
    "b": 229
  },
  "hsl": {
    "h": 274.488,
    "s": 70.95,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64568,
    "c": 0.19155,
    "h": 308.5
  },
  "luminance": 0.24274
}

Semantic roles & 50–950 ramp

primary
#AF66E5
secondary
#D0E9BE
accent
#D31364
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF66E5

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

Preview Lab → · Contrast checker → · Palette generator →

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