#AF86FC#AF86FC

#AF86FC is a light, vivid violet. Relative luminance 0.332; OKLCH L 70.9% C 0.170 H 298.0°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#AF86FC
RGBrgb(175, 134, 252)
HSLhsl(261, 95%, 76%)
HSVhsv(261, 47%, 99%)
CMYKcmyk(30.6%, 46.8%, 0%, 1.2%)
CIE-LABlab(64.32, 39.93, -53.42)
CIE-LCHlch(64.32, 66.69, 306.77°)
OKLaboklab(70.87% 0.0797 -0.1502)
OKLCHoklch(70.87% 0.17 298)
XYZxyz(43.7707, 33.1920, 96.1772)
Luminance0.3319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF86FC #D3FC86
analogous
#8698FC #AF86FC #EA86FC
triadic
#AF86FC #FCAF86 #86FCAF
tetradic
#AF86FC #FC8698 #D3FC86 #86FCEA
square
#AF86FC #FC8698 #D3FC86 #86FCEA
split-complementary
#AF86FC #FCEA86 #98FC86
monochromatic
#600FF9 #884AFB #AF86FC #D6C2FD #EBE1FE

Accessibility & contrast

On white

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

On black

7.64
#AF86FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF86FC
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF86FC#FFFFFF#000000##000000
##AF86FC1.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#699BF9
Tritanopia (blue-blind)
#9F9CB5
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af86fc;
/* rgb */ color: rgb(175, 134, 252);
/* oklch */ color: oklch(70.9% 0.170 298.0);
Tailwind
colors: {
  custom: {
    50: '#caaafe',
    500: '#af86fc',
    950: '#000000',
  },
}
SCSS
$custom: #af86fc;
$custom-light: #caaafe;
$custom-dark: #000000;
JSON
{
  "hex": "#af86fc",
  "rgb": {
    "r": 175,
    "g": 134,
    "b": 252
  },
  "hsl": {
    "h": 260.847,
    "s": 95.161,
    "l": 75.686
  },
  "oklch": {
    "l": 0.70866,
    "c": 0.17009,
    "h": 298
  },
  "luminance": 0.33192
}

Semantic roles & 50–950 ramp

primary
#AF86FC
secondary
#EBF6D5
accent
#E60096
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF86FC

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

Preview Lab → · Contrast checker → · Palette generator →

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