#AF66EC#AF66EC

#AF66EC is a light, vivid violet. Relative luminance 0.247; OKLCH L 65.0% C 0.199 H 306.8°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#AF66EC
RGBrgb(175, 102, 236)
HSLhsl(273, 78%, 66%)
HSVhsv(273, 57%, 93%)
CMYKcmyk(25.8%, 56.8%, 0%, 7.5%)
CIE-LABlab(56.76, 53.34, -56.61)
CIE-LCHlch(56.76, 77.78, 313.29°)
OKLaboklab(64.99% 0.1195 -0.1595)
OKLCHoklch(64.99% 0.199 306.8)
XYZxyz(37.5677, 24.6732, 82.1239)
Luminance0.2467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF66EC #A3EC66
analogous
#6C66EC #AF66EC #EC66E6
triadic
#AF66EC #ECAF66 #66ECAF
tetradic
#AF66EC #EC6C66 #A3EC66 #66E6EC
square
#AF66EC #EC6C66 #A3EC66 #66E6EC
split-complementary
#AF66EC #E6EC66 #66EC6C
monochromatic
#7318C0 #9330E5 #AF66EC #CB9CF3 #E8D3FA

Accessibility & contrast

On white

3.54
#AF66EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#AF66EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF66EC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF66EC#FFFFFF#000000##000000
##AF66EC1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3386F0
Deuteranopia (green-blind)
#5089E9
Tritanopia (blue-blind)
#A57F9F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af66ec;
/* rgb */ color: rgb(175, 102, 236);
/* oklch */ color: oklch(65.0% 0.199 306.8);
Tailwind
colors: {
  custom: {
    50: '#ca94f3',
    500: '#af66ec',
    950: '#000000',
  },
}
SCSS
$custom: #af66ec;
$custom-light: #ca94f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af66ec",
  "rgb": {
    "r": 175,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 272.687,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.64985,
    "c": 0.19929,
    "h": 306.8
  },
  "luminance": 0.24673
}

Semantic roles & 50–950 ramp

primary
#AF66EC
secondary
#D5EDC1
accent
#DA0B69
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF66EC

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

Preview Lab → · Contrast checker → · Palette generator →

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