#AF86EC#AF86EC

#AF86EC is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.0% C 0.150 H 301.2°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#AF86EC
RGBrgb(175, 134, 236)
HSLhsl(264, 73%, 73%)
HSVhsv(264, 43%, 93%)
CMYKcmyk(25.8%, 43.2%, 0%, 7.5%)
CIE-LABlab(63.52, 36.06, -45.87)
CIE-LCHlch(63.52, 58.34, 308.17°)
OKLaboklab(70.01% 0.0776 -0.1282)
OKLCHoklch(70.01% 0.15 301.2)
XYZxyz(41.3412, 32.2202, 83.3817)
Luminance0.3222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF86EC #C3EC86
analogous
#8690EC #AF86EC #E286EC
triadic
#AF86EC #ECAF86 #86ECAF
tetradic
#AF86EC #EC8690 #C3EC86 #86ECE2
square
#AF86EC #EC8690 #C3EC86 #86ECE2
split-complementary
#AF86EC #ECE286 #90EC86
monochromatic
#6A22D6 #8C51E4 #AF86EC #D2BBF4 #EEE5FB

Accessibility & contrast

On white

2.82
#AF86EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.44
#AF86EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF86EC
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF86EC#FFFFFF#000000##000000
##AF86EC1.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99F0
Deuteranopia (green-blind)
#7399E9
Tritanopia (blue-blind)
#A498AE
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af86ec;
/* rgb */ color: rgb(175, 134, 236);
/* oklch */ color: oklch(70.0% 0.150 301.2);
Tailwind
colors: {
  custom: {
    50: '#c9aaf2',
    500: '#af86ec',
    950: '#000000',
  },
}
SCSS
$custom: #af86ec;
$custom-light: #c9aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af86ec",
  "rgb": {
    "r": 175,
    "g": 134,
    "b": 236
  },
  "hsl": {
    "h": 264.118,
    "s": 72.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.70014,
    "c": 0.14987,
    "h": 301.2
  },
  "luminance": 0.3222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF86EC

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

Preview Lab → · Contrast checker → · Palette generator →

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