#AF66EB#AF66EB

#AF66EB is a light, vivid violet. Relative luminance 0.246; OKLCH L 64.9% C 0.198 H 307.1°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#AF66EB
RGBrgb(175, 102, 235)
HSLhsl(273, 77%, 66%)
HSVhsv(273, 57%, 92%)
CMYKcmyk(25.5%, 56.6%, 0%, 7.8%)
CIE-LABlab(56.70, 53.11, -56.15)
CIE-LCHlch(56.70, 77.29, 313.41°)
OKLaboklab(64.92% 0.1194 -0.1582)
OKLCHoklch(64.92% 0.198 307.1)
XYZxyz(37.4229, 24.6153, 81.3609)
Luminance0.2462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF66EB #A2EB66
analogous
#6C66EB #AF66EB #EB66E5
triadic
#AF66EB #EBAF66 #66EBAF
tetradic
#AF66EB #EB6C66 #A2EB66 #66E5EB
square
#AF66EB #EB6C66 #A2EB66 #66E5EB
split-complementary
#AF66EB #E5EB66 #66EB6C
monochromatic
#7319BE #9330E4 #AF66EB #CB9CF2 #E8D2F9

Accessibility & contrast

On white

3.55
#AF66EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#AF66EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF66EB
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF66EB#FFFFFF#000000##000000
##AF66EB1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3485EF
Deuteranopia (green-blind)
#5189E8
Tritanopia (blue-blind)
#A67F9F
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #af66eb;
/* rgb */ color: rgb(175, 102, 235);
/* oklch */ color: oklch(64.9% 0.198 307.1);
Tailwind
colors: {
  custom: {
    50: '#ca94f2',
    500: '#af66eb',
    950: '#000000',
  },
}
SCSS
$custom: #af66eb;
$custom-light: #ca94f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af66eb",
  "rgb": {
    "r": 175,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 272.932,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.64924,
    "c": 0.19819,
    "h": 307.1
  },
  "luminance": 0.24615
}

Semantic roles & 50–950 ramp

primary
#AF66EB
secondary
#D4ECC1
accent
#D90C69
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF66EB

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

Preview Lab → · Contrast checker → · Palette generator →

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