#AF71E9#AF71E9

#AF71E9 is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.4% C 0.179 H 306.0°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#AF71E9
RGBrgb(175, 113, 233)
HSLhsl(271, 73%, 68%)
HSVhsv(271, 52%, 91%)
CMYKcmyk(24.9%, 51.5%, 0%, 8.6%)
CIE-LABlab(58.80, 46.88, -51.69)
CIE-LCHlch(58.80, 69.78, 312.21°)
OKLaboklab(66.43% 0.1053 -0.1451)
OKLCHoklch(66.43% 0.179 306)
XYZxyz(38.2892, 26.8077, 80.2323)
Luminance0.2681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71E9 #ABE971
analogous
#7371E9 #AF71E9 #E971E7
triadic
#AF71E9 #E9AF71 #71E9AF
tetradic
#AF71E9 #E97371 #ABE971 #71E7E9
square
#AF71E9 #E97371 #ABE971 #71E7E9
split-complementary
#AF71E9 #E7E971 #71E973
monochromatic
#731EC2 #913CE1 #AF71E9 #CDA6F1 #EBDBF9

Accessibility & contrast

On white

3.30
#AF71E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#AF71E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71E9
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71E9#FFFFFF#000000##000000
##AF71E91.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8BED
Deuteranopia (green-blind)
#5F8EE6
Tritanopia (blue-blind)
#A687A3
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af71e9;
/* rgb */ color: rgb(175, 113, 233);
/* oklch */ color: oklch(66.4% 0.179 306.0);
Tailwind
colors: {
  custom: {
    50: '#ca9bf0',
    500: '#af71e9',
    950: '#000000',
  },
}
SCSS
$custom: #af71e9;
$custom-light: #ca9bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#af71e9",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 233
  },
  "hsl": {
    "h": 271,
    "s": 73.171,
    "l": 67.843
  },
  "oklch": {
    "l": 0.66433,
    "c": 0.17931,
    "h": 306
  },
  "luminance": 0.26807
}

Semantic roles & 50–950 ramp

primary
#AF71E9
secondary
#DAEDC8
accent
#D5106F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF71E9

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

Preview Lab → · Contrast checker → · Palette generator →

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