#AF86EF#AF86EF

#AF86EF is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.2% C 0.154 H 300.5°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#AF86EF
RGBrgb(175, 134, 239)
HSLhsl(263, 77%, 73%)
HSVhsv(263, 44%, 94%)
CMYKcmyk(26.8%, 43.9%, 0%, 6.3%)
CIE-LABlab(63.67, 36.77, -47.30)
CIE-LCHlch(63.67, 59.91, 307.87°)
OKLaboklab(70.17% 0.078 -0.1324)
OKLCHoklch(70.17% 0.154 300.5)
XYZxyz(41.7807, 32.3960, 85.6965)
Luminance0.3240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF86EF #C6EF86
analogous
#8691EF #AF86EF #E486EF
triadic
#AF86EF #EFAF86 #86EFAF
tetradic
#AF86EF #EF8691 #C6EF86 #86EFE4
square
#AF86EF #EF8691 #C6EF86 #86EFE4
split-complementary
#AF86EF #EFE486 #91EF86
monochromatic
#681DDD #8B50E8 #AF86EF #D3BCF6 #EDE4FB

Accessibility & contrast

On white

2.81
#AF86EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#AF86EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF86EF
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF86EF#FFFFFF#000000##000000
##AF86EF1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#689AF3
Deuteranopia (green-blind)
#719AEC
Tritanopia (blue-blind)
#A398AF
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af86ef;
/* rgb */ color: rgb(175, 134, 239);
/* oklch */ color: oklch(70.2% 0.154 300.5);
Tailwind
colors: {
  custom: {
    50: '#c9aaf4',
    500: '#af86ef',
    950: '#000000',
  },
}
SCSS
$custom: #af86ef;
$custom-light: #c9aaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af86ef",
  "rgb": {
    "r": 175,
    "g": 134,
    "b": 239
  },
  "hsl": {
    "h": 263.429,
    "s": 76.642,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70169,
    "c": 0.15368,
    "h": 300.5
  },
  "luminance": 0.32396
}

Semantic roles & 50–950 ramp

primary
#AF86EF
secondary
#E8F3D8
accent
#D90D89
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF86EF

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

Preview Lab → · Contrast checker → · Palette generator →

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