#AF71ED#AF71ED

#AF71ED is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.7% C 0.184 H 305.0°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#AF71ED
RGBrgb(175, 113, 237)
HSLhsl(270, 78%, 69%)
HSVhsv(270, 52%, 93%)
CMYKcmyk(26.2%, 52.3%, 0%, 7.1%)
CIE-LABlab(59.01, 47.80, -53.57)
CIE-LCHlch(59.01, 71.80, 311.74°)
OKLaboklab(66.66% 0.1056 -0.1506)
OKLCHoklch(66.66% 0.184 305)
XYZxyz(38.8671, 27.0389, 83.2758)
Luminance0.2704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71ED #AFED71
analogous
#7171ED #AF71ED #ED71ED
triadic
#AF71ED #EDAF71 #71EDAF
tetradic
#AF71ED #ED7171 #AFED71 #71EDED
square
#AF71ED #ED7171 #AFED71 #71EDED
split-complementary
#AF71ED #EDED71 #71ED71
monochromatic
#721ACA #903BE6 #AF71ED #CEA7F4 #ECDEFB

Accessibility & contrast

On white

3.28
#AF71ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#AF71ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71ED
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71ED#FFFFFF#000000##000000
##AF71ED1.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#488CF1
Deuteranopia (green-blind)
#5C8EEA
Tritanopia (blue-blind)
#A588A4
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af71ed;
/* rgb */ color: rgb(175, 113, 237);
/* oklch */ color: oklch(66.7% 0.184 305.0);
Tailwind
colors: {
  custom: {
    50: '#ca9cf3',
    500: '#af71ed',
    950: '#000000',
  },
}
SCSS
$custom: #af71ed;
$custom-light: #ca9cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#af71ed",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 237
  },
  "hsl": {
    "h": 270,
    "s": 77.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.66662,
    "c": 0.18397,
    "h": 305
  },
  "luminance": 0.27039
}

Semantic roles & 50–950 ramp

primary
#AF71ED
secondary
#DDEFCA
accent
#DA0C73
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF71ED

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

Preview Lab → · Contrast checker → · Palette generator →

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