#AF86F8#AF86F8

#AF86F8 is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.6% C 0.165 H 298.7°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#AF86F8
RGBrgb(175, 134, 248)
HSLhsl(262, 89%, 75%)
HSVhsv(262, 46%, 97%)
CMYKcmyk(29.4%, 46%, 0%, 2.7%)
CIE-LABlab(64.11, 38.95, -51.55)
CIE-LCHlch(64.11, 64.61, 307.07°)
OKLaboklab(70.65% 0.0793 -0.1448)
OKLCHoklch(70.65% 0.165 298.7)
XYZxyz(43.1436, 32.9411, 92.8740)
Luminance0.3294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF86F8 #CFF886
analogous
#8696F8 #AF86F8 #E886F8
triadic
#AF86F8 #F8AF86 #86F8AF
tetradic
#AF86F8 #F88696 #CFF886 #86F8E8
square
#AF86F8 #F88696 #CFF886 #86F8E8
split-complementary
#AF86F8 #F8E886 #96F886
monochromatic
#6312F1 #894CF5 #AF86F8 #D5C0FB #ECE2FD

Accessibility & contrast

On white

2.77
#AF86F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#AF86F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF86F8
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF86F8#FFFFFF#000000##000000
##AF86F81.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#639BFC
Deuteranopia (green-blind)
#6C9AF5
Tritanopia (blue-blind)
#A09BB3
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af86f8;
/* rgb */ color: rgb(175, 134, 248);
/* oklch */ color: oklch(70.6% 0.165 298.7);
Tailwind
colors: {
  custom: {
    50: '#c9aafb',
    500: '#af86f8',
    950: '#000000',
  },
}
SCSS
$custom: #af86f8;
$custom-light: #c9aafb;
$custom-dark: #000000;
JSON
{
  "hex": "#af86f8",
  "rgb": {
    "r": 175,
    "g": 134,
    "b": 248
  },
  "hsl": {
    "h": 261.579,
    "s": 89.063,
    "l": 74.902
  },
  "oklch": {
    "l": 0.70648,
    "c": 0.16506,
    "h": 298.7
  },
  "luminance": 0.32941
}

Semantic roles & 50–950 ramp

primary
#AF86F8
secondary
#EAF5D6
accent
#E60093
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF86F8

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

Preview Lab → · Contrast checker → · Palette generator →

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