#AF73EC#AF73EC

#AF73EC is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.9% C 0.180 H 304.9°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#AF73EC
RGBrgb(175, 115, 236)
HSLhsl(270, 76%, 69%)
HSVhsv(270, 51%, 93%)
CMYKcmyk(25.8%, 51.3%, 0%, 7.5%)
CIE-LABlab(59.37, 46.50, -52.44)
CIE-LCHlch(59.37, 70.09, 311.56°)
OKLaboklab(66.91% 0.1029 -0.1473)
OKLCHoklch(66.91% 0.18 304.9)
XYZxyz(38.9470, 27.4318, 82.5837)
Luminance0.2743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF73EC #B0EC73
analogous
#7374EC #AF73EC #EC73EC
triadic
#AF73EC #ECAF73 #73ECAF
tetradic
#AF73EC #EC7374 #B0EC73 #73ECEC
square
#AF73EC #EC7374 #B0EC73 #73ECEC
split-complementary
#AF73EC #ECEC73 #74EC73
monochromatic
#721BC9 #903DE5 #AF73EC #CEA9F3 #EDDFFB

Accessibility & contrast

On white

3.24
#AF73EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#AF73EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF73EC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF73EC#FFFFFF#000000##000000
##AF73EC1.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DF0
Deuteranopia (green-blind)
#5F8FE9
Tritanopia (blue-blind)
#A589A5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af73ec;
/* rgb */ color: rgb(175, 115, 236);
/* oklch */ color: oklch(66.9% 0.180 304.9);
Tailwind
colors: {
  custom: {
    50: '#ca9df3',
    500: '#af73ec',
    950: '#000000',
  },
}
SCSS
$custom: #af73ec;
$custom-light: #ca9df3;
$custom-dark: #000000;
JSON
{
  "hex": "#af73ec",
  "rgb": {
    "r": 175,
    "g": 115,
    "b": 236
  },
  "hsl": {
    "h": 269.752,
    "s": 76.101,
    "l": 68.824
  },
  "oklch": {
    "l": 0.66912,
    "c": 0.17973,
    "h": 304.9
  },
  "luminance": 0.27432
}

Semantic roles & 50–950 ramp

primary
#AF73EC
secondary
#DEEFCC
accent
#D80D74
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF73EC

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

Preview Lab → · Contrast checker → · Palette generator →

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