#AF71FE#AF71FE

#AF71FE is a light, highly saturated violet. Relative luminance 0.281; OKLCH L 67.7% C 0.204 H 301.5°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#AF71FE
RGBrgb(175, 113, 254)
HSLhsl(266, 99%, 72%)
HSVhsv(266, 56%, 100%)
CMYKcmyk(31.1%, 55.5%, 0%, 0.4%)
CIE-LABlab(59.96, 51.81, -61.46)
CIE-LCHlch(59.96, 80.39, 310.13°)
OKLaboklab(67.67% 0.1063 -0.1738)
OKLCHoklch(67.67% 0.204 301.5)
XYZxyz(41.4695, 28.0798, 96.9819)
Luminance0.2808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71FE #C0FE71
analogous
#717AFE #AF71FE #F571FE
triadic
#AF71FE #FEAF71 #71FEAF
tetradic
#AF71FE #FE717A #C0FE71 #71FEF5
square
#AF71FE #FE717A #C0FE71 #71FEF5
split-complementary
#AF71FE #FEF571 #7AFE71
monochromatic
#6C02F3 #8D34FE #AF71FE #D1AEFE #EEE1FF

Accessibility & contrast

On white

3.17
#AF71FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#AF71FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71FE
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71FE#FFFFFF#000000##000000
##AF71FE1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3590FF
Deuteranopia (green-blind)
#4D90FB
Tritanopia (blue-blind)
#9F8DAD
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af71fe;
/* rgb */ color: rgb(175, 113, 254);
/* oklch */ color: oklch(67.7% 0.204 301.5);
Tailwind
colors: {
  custom: {
    50: '#cb9cff',
    500: '#af71fe',
    950: '#000000',
  },
}
SCSS
$custom: #af71fe;
$custom-light: #cb9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#af71fe",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 266.383,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.67669,
    "c": 0.2037,
    "h": 301.5
  },
  "luminance": 0.2808
}

Semantic roles & 50–950 ramp

primary
#AF71FE
secondary
#E8F7D4
accent
#E60081
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF71FE

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

Preview Lab → · Contrast checker → · Palette generator →

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