#AF66EF#AF66EF

#AF66EF is a light, highly saturated violet. Relative luminance 0.248; OKLCH L 65.2% C 0.203 H 306.1°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#AF66EF
RGBrgb(175, 102, 239)
HSLhsl(272, 81%, 67%)
HSVhsv(272, 57%, 94%)
CMYKcmyk(26.8%, 57.3%, 0%, 6.3%)
CIE-LABlab(56.93, 54.02, -58.01)
CIE-LCHlch(56.93, 79.27, 312.96°)
OKLaboklab(65.17% 0.1195 -0.1636)
OKLCHoklch(65.17% 0.203 306.1)
XYZxyz(38.0073, 24.8490, 84.4387)
Luminance0.2485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF66EF #A6EF66
analogous
#6B66EF #AF66EF #EF66EA
triadic
#AF66EF #EFAF66 #66EFAF
tetradic
#AF66EF #EF6B66 #A6EF66 #66EAEF
square
#AF66EF #EF6B66 #A6EF66 #66EAEF
split-complementary
#AF66EF #EAEF66 #66EF6B
monochromatic
#7315C6 #922FE9 #AF66EF #CC9DF5 #E9D5FB

Accessibility & contrast

On white

3.52
#AF66EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#AF66EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF66EF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF66EF#FFFFFF#000000##000000
##AF66EF1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F86F3
Deuteranopia (green-blind)
#4D89EC
Tritanopia (blue-blind)
#A480A1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #af66ef;
/* rgb */ color: rgb(175, 102, 239);
/* oklch */ color: oklch(65.2% 0.203 306.1);
Tailwind
colors: {
  custom: {
    50: '#ca95f5',
    500: '#af66ef',
    950: '#000000',
  },
}
SCSS
$custom: #af66ef;
$custom-light: #ca95f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af66ef",
  "rgb": {
    "r": 175,
    "g": 102,
    "b": 239
  },
  "hsl": {
    "h": 271.971,
    "s": 81.065,
    "l": 66.863
  },
  "oklch": {
    "l": 0.65166,
    "c": 0.2026,
    "h": 306.1
  },
  "luminance": 0.24849
}

Semantic roles & 50–950 ramp

primary
#AF66EF
secondary
#D7EEC2
accent
#DD086C
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF66EF

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

Preview Lab → · Contrast checker → · Palette generator →

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