#AF86FB#AF86FB

#AF86FB is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.8% C 0.169 H 298.1°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#AF86FB
RGBrgb(175, 134, 251)
HSLhsl(261, 94%, 75%)
HSVhsv(261, 47%, 98%)
CMYKcmyk(30.3%, 46.6%, 0%, 1.6%)
CIE-LABlab(64.27, 39.68, -52.95)
CIE-LCHlch(64.27, 66.17, 306.85°)
OKLaboklab(70.81% 0.0796 -0.1489)
OKLCHoklch(70.81% 0.169 298.1)
XYZxyz(43.6127, 33.1288, 95.3449)
Luminance0.3313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF86FB #D2FB86
analogous
#8697FB #AF86FB #EA86FB
triadic
#AF86FB #FBAF86 #86FBAF
tetradic
#AF86FB #FB8697 #D2FB86 #86FBEA
square
#AF86FB #FB8697 #D2FB86 #86FBEA
split-complementary
#AF86FB #FBEA86 #97FB86
monochromatic
#6110F7 #884BF9 #AF86FB #D6C1FD #EBE1FE

Accessibility & contrast

On white

2.75
#AF86FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#AF86FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF86FB
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF86FB#FFFFFF#000000##000000
##AF86FB1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#619CFF
Deuteranopia (green-blind)
#6A9BF8
Tritanopia (blue-blind)
#9F9CB5
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af86fb;
/* rgb */ color: rgb(175, 134, 251);
/* oklch */ color: oklch(70.8% 0.169 298.1);
Tailwind
colors: {
  custom: {
    50: '#caaafd',
    500: '#af86fb',
    950: '#000000',
  },
}
SCSS
$custom: #af86fb;
$custom-light: #caaafd;
$custom-dark: #000000;
JSON
{
  "hex": "#af86fb",
  "rgb": {
    "r": 175,
    "g": 134,
    "b": 251
  },
  "hsl": {
    "h": 261.026,
    "s": 93.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.70811,
    "c": 0.16883,
    "h": 298.1
  },
  "luminance": 0.33129
}

Semantic roles & 50–950 ramp

primary
#AF86FB
secondary
#EAF6D5
accent
#E60095
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF86FB

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

Preview Lab → · Contrast checker → · Palette generator →

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