#AF87F6#AF87F6

#AF87F6 is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.7% C 0.161 H 298.9°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#AF87F6
RGBrgb(175, 135, 246)
HSLhsl(262, 86%, 75%)
HSVhsv(262, 45%, 96%)
CMYKcmyk(28.9%, 45.1%, 0%, 3.5%)
CIE-LABlab(64.24, 37.91, -50.25)
CIE-LCHlch(64.24, 62.94, 307.03°)
OKLaboklab(70.71% 0.0777 -0.141)
OKLCHoklch(70.71% 0.161 298.9)
XYZxyz(42.9738, 33.0954, 91.2949)
Luminance0.3310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F6 #CEF687
analogous
#8796F6 #AF87F6 #E787F6
triadic
#AF87F6 #F6AF87 #87F6AF
tetradic
#AF87F6 #F68796 #CEF687 #87F6E7
square
#AF87F6 #F68796 #CEF687 #87F6E7
split-complementary
#AF87F6 #F6E787 #96F687
monochromatic
#6315ED #894EF2 #AF87F6 #D5C0FA #ECE3FD

Accessibility & contrast

On white

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

On black

7.62
#AF87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F6
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F6#FFFFFF#000000##000000
##AF87F61.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#669CFA
Deuteranopia (green-blind)
#6E9BF3
Tritanopia (blue-blind)
#A19BB3
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af87f6;
/* rgb */ color: rgb(175, 135, 246);
/* oklch */ color: oklch(70.7% 0.161 298.9);
Tailwind
colors: {
  custom: {
    50: '#c9aaf9',
    500: '#af87f6',
    950: '#000000',
  },
}
SCSS
$custom: #af87f6;
$custom-light: #c9aaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f6",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 261.622,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.70709,
    "c": 0.16098,
    "h": 298.9
  },
  "luminance": 0.33096
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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