#AF73E7#AF73E7

#AF73E7 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.6% C 0.174 H 306.1°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#AF73E7
RGBrgb(175, 115, 231)
HSLhsl(271, 71%, 68%)
HSVhsv(271, 50%, 91%)
CMYKcmyk(24.2%, 50.2%, 0%, 9.4%)
CIE-LABlab(59.11, 45.34, -50.07)
CIE-LCHlch(59.11, 67.55, 312.16°)
OKLaboklab(66.63% 0.1025 -0.1404)
OKLCHoklch(66.63% 0.174 306.1)
XYZxyz(38.2307, 27.1453, 78.8113)
Luminance0.2715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF73E7 #ABE773
analogous
#7573E7 #AF73E7 #E773E5
triadic
#AF73E7 #E7AF73 #73E7AF
tetradic
#AF73E7 #E77573 #ABE773 #73E5E7
square
#AF73E7 #E77573 #ABE773 #73E5E7
split-complementary
#AF73E7 #E5E773 #73E775
monochromatic
#7321BF #913FDE #AF73E7 #CDA7F0 #EBDBF9

Accessibility & contrast

On white

3.27
#AF73E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#AF73E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF73E7
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF73E7#FFFFFF#000000##000000
##AF73E71.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#518CEB
Deuteranopia (green-blind)
#628FE4
Tritanopia (blue-blind)
#A687A2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af73e7;
/* rgb */ color: rgb(175, 115, 231);
/* oklch */ color: oklch(66.6% 0.174 306.1);
Tailwind
colors: {
  custom: {
    50: '#c99def',
    500: '#af73e7',
    950: '#000000',
  },
}
SCSS
$custom: #af73e7;
$custom-light: #c99def;
$custom-dark: #000000;
JSON
{
  "hex": "#af73e7",
  "rgb": {
    "r": 175,
    "g": 115,
    "b": 231
  },
  "hsl": {
    "h": 271.034,
    "s": 70.732,
    "l": 67.843
  },
  "oklch": {
    "l": 0.66631,
    "c": 0.17387,
    "h": 306.1
  },
  "luminance": 0.27145
}

Semantic roles & 50–950 ramp

primary
#AF73E7
secondary
#DAEDC9
accent
#D3136F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF73E7

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

Preview Lab → · Contrast checker → · Palette generator →

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