#AF87FF#AF87FF

#AF87FF is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.2% C 0.172 H 297.2°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#AF87FF
RGBrgb(175, 135, 255)
HSLhsl(260, 100%, 76%)
HSVhsv(260, 47%, 100%)
CMYKcmyk(31.4%, 47.1%, 0%, 0%)
CIE-LABlab(64.69, 40.11, -54.47)
CIE-LCHlch(64.69, 67.64, 306.37°)
OKLaboklab(71.2% 0.0788 -0.1533)
OKLCHoklch(71.2% 0.172 297.2)
XYZxyz(44.3888, 33.6614, 98.7470)
Luminance0.3366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87FF #D7FF87
analogous
#879BFF #AF87FF #EB87FF
triadic
#AF87FF #FFAF87 #87FFAF
tetradic
#AF87FF #FF879B #D7FF87 #87FFEB
square
#AF87FF #FF879B #D7FF87 #87FFEB
split-complementary
#AF87FF #FFEB87 #9BFF87
monochromatic
#5D0DFF #864AFF #AF87FF #D8C4FF #EBE0FF

Accessibility & contrast

On white

2.72
#AF87FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#AF87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87FF
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87FF#FFFFFF#000000##000000
##AF87FF1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9DFF
Deuteranopia (green-blind)
#689CFC
Tritanopia (blue-blind)
#9E9DB7
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af87ff;
/* rgb */ color: rgb(175, 135, 255);
/* oklch */ color: oklch(71.2% 0.172 297.2);
Tailwind
colors: {
  custom: {
    50: '#caaaff',
    500: '#af87ff',
    950: '#000000',
  },
}
SCSS
$custom: #af87ff;
$custom-light: #caaaff;
$custom-dark: #000000;
JSON
{
  "hex": "#af87ff",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 260,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.71198,
    "c": 0.17235,
    "h": 297.2
  },
  "luminance": 0.33662
}

Semantic roles & 50–950 ramp

primary
#AF87FF
secondary
#EBF7D4
accent
#E60099
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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