#AF64DC#AF64DC

#AF64DC is a light, vivid violet. Relative luminance 0.234; OKLCH L 63.8% C 0.185 H 311.1°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF64DC
RGBrgb(175, 100, 220)
HSLhsl(278, 63%, 63%)
HSVhsv(278, 55%, 86%)
CMYKcmyk(20.5%, 54.5%, 0%, 13.7%)
CIE-LABlab(55.48, 50.81, -49.67)
CIE-LCHlch(55.48, 71.05, 315.65°)
OKLaboklab(63.76% 0.1214 -0.1392)
OKLCHoklch(63.76% 0.185 311.1)
XYZxyz(35.1523, 23.3963, 70.3604)
Luminance0.2340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF64DC #91DC64
analogous
#7364DC #AF64DC #DC64CD
triadic
#AF64DC #DCAF64 #64DCAF
tetradic
#AF64DC #DC7364 #91DC64 #64CDDC
square
#AF64DC #DC7364 #91DC64 #64CDDC
split-complementary
#AF64DC #CDDC64 #64DC73
monochromatic
#7224A1 #9532D1 #AF64DC #C996E7 #E3C8F3

Accessibility & contrast

On white

3.70
#AF64DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#AF64DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF64DC
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF64DC#FFFFFF#000000##000000
##AF64DC1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4181E0
Deuteranopia (green-blind)
#5B86D9
Tritanopia (blue-blind)
#AA7997
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af64dc;
/* rgb */ color: rgb(175, 100, 220);
/* oklch */ color: oklch(63.8% 0.185 311.1);
Tailwind
colors: {
  custom: {
    50: '#ca93e7',
    500: '#af64dc',
    950: '#000000',
  },
}
SCSS
$custom: #af64dc;
$custom-light: #ca93e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af64dc",
  "rgb": {
    "r": 175,
    "g": 100,
    "b": 220
  },
  "hsl": {
    "h": 277.5,
    "s": 63.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.6376,
    "c": 0.18471,
    "h": 311.1
  },
  "luminance": 0.23396
}

Semantic roles & 50–950 ramp

primary
#AF64DC
secondary
#C8E4B8
accent
#CB1B5D
background
#FCF9FE
surface
#F9F1FC
border
#D2CBD5
text
#130D16
muted
#827E84

Preview Lab

Preview with #AF64DC

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

Preview Lab → · Contrast checker → · Palette generator →

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