#AF86F9#AF86F9

#AF86F9 is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.7% C 0.166 H 298.5°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#AF86F9
RGBrgb(175, 134, 249)
HSLhsl(261, 91%, 75%)
HSVhsv(261, 46%, 98%)
CMYKcmyk(29.7%, 46.2%, 0%, 2.4%)
CIE-LABlab(64.16, 39.19, -52.02)
CIE-LCHlch(64.16, 65.13, 307.00°)
OKLaboklab(70.7% 0.0794 -0.1461)
OKLCHoklch(70.7% 0.166 298.5)
XYZxyz(43.2991, 33.0033, 93.6933)
Luminance0.3300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF86F9 #D0F986
analogous
#8697F9 #AF86F9 #E886F9
triadic
#AF86F9 #F9AF86 #86F9AF
tetradic
#AF86F9 #F98697 #D0F986 #86F9E8
square
#AF86F9 #F98697 #D0F986 #86F9E8
split-complementary
#AF86F9 #F9E886 #97F986
monochromatic
#6211F3 #884CF6 #AF86F9 #D6C0FC #ECE2FE

Accessibility & contrast

On white

2.76
#AF86F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#AF86F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF86F9
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF86F9#FFFFFF#000000##000000
##AF86F91.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#629CFD
Deuteranopia (green-blind)
#6B9AF6
Tritanopia (blue-blind)
#A09BB4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af86f9;
/* rgb */ color: rgb(175, 134, 249);
/* oklch */ color: oklch(70.7% 0.166 298.5);
Tailwind
colors: {
  custom: {
    50: '#caaafc',
    500: '#af86f9',
    950: '#000000',
  },
}
SCSS
$custom: #af86f9;
$custom-light: #caaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#af86f9",
  "rgb": {
    "r": 175,
    "g": 134,
    "b": 249
  },
  "hsl": {
    "h": 261.391,
    "s": 90.551,
    "l": 75.098
  },
  "oklch": {
    "l": 0.70702,
    "c": 0.16632,
    "h": 298.5
  },
  "luminance": 0.33004
}

Semantic roles & 50–950 ramp

primary
#AF86F9
secondary
#EAF6D5
accent
#E60094
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF86F9

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

Preview Lab → · Contrast checker → · Palette generator →

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