#AF64E7#AF64E7

#AF64E7 is a light, vivid violet. Relative luminance 0.240; OKLCH L 64.4% C 0.197 H 308.3°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#AF64E7
RGBrgb(175, 100, 231)
HSLhsl(274, 73%, 65%)
HSVhsv(274, 57%, 91%)
CMYKcmyk(24.2%, 56.7%, 0%, 9.4%)
CIE-LABlab(56.09, 53.24, -54.89)
CIE-LCHlch(56.09, 76.46, 314.13°)
OKLaboklab(64.4% 0.1218 -0.1544)
OKLCHoklch(64.4% 0.197 308.3)
XYZxyz(36.6573, 23.9983, 78.2868)
Luminance0.2400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF64E7 #9CE764
analogous
#6E64E7 #AF64E7 #E764DE
triadic
#AF64E7 #E7AF64 #64E7AF
tetradic
#AF64E7 #E76E64 #9CE764 #64DEE7
square
#AF64E7 #E76E64 #9CE764 #64DEE7
split-complementary
#AF64E7 #DEE764 #64E76E
monochromatic
#731CB5 #942FDF #AF64E7 #CA99EF #E6CEF7

Accessibility & contrast

On white

3.62
#AF64E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#AF64E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF64E7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF64E7#FFFFFF#000000##000000
##AF64E71.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3583EB
Deuteranopia (green-blind)
#5287E4
Tritanopia (blue-blind)
#A77C9C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #af64e7;
/* rgb */ color: rgb(175, 100, 231);
/* oklch */ color: oklch(64.4% 0.197 308.3);
Tailwind
colors: {
  custom: {
    50: '#ca93ef',
    500: '#af64e7',
    950: '#000000',
  },
}
SCSS
$custom: #af64e7;
$custom-light: #ca93ef;
$custom-dark: #000000;
JSON
{
  "hex": "#af64e7",
  "rgb": {
    "r": 175,
    "g": 100,
    "b": 231
  },
  "hsl": {
    "h": 274.351,
    "s": 73.184,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64403,
    "c": 0.19672,
    "h": 308.3
  },
  "luminance": 0.23998
}

Semantic roles & 50–950 ramp

primary
#AF64E7
secondary
#D0EABD
accent
#D51064
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140D16
muted
#827E84

Preview Lab

Preview with #AF64E7

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

Preview Lab → · Contrast checker → · Palette generator →

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