#AF87F7#AF87F7

#AF87F7 is a light, vivid violet. Relative luminance 0.332; OKLCH L 70.8% C 0.162 H 298.7°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#AF87F7
RGBrgb(175, 135, 247)
HSLhsl(261, 88%, 75%)
HSVhsv(261, 45%, 97%)
CMYKcmyk(29.1%, 45.3%, 0%, 3.1%)
CIE-LABlab(64.29, 38.15, -50.72)
CIE-LCHlch(64.29, 63.47, 306.95°)
OKLaboklab(70.76% 0.0778 -0.1424)
OKLCHoklch(70.76% 0.162 298.7)
XYZxyz(43.1277, 33.1569, 92.1054)
Luminance0.3316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F7 #CFF787
analogous
#8797F7 #AF87F7 #E787F7
triadic
#AF87F7 #F7AF87 #87F7AF
tetradic
#AF87F7 #F78797 #CFF787 #87F7E7
square
#AF87F7 #F78797 #CFF787 #87F7E7
split-complementary
#AF87F7 #F7E787 #97F787
monochromatic
#6314EF #894EF3 #AF87F7 #D5C0FB #ECE2FD

Accessibility & contrast

On white

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

On black

7.63
#AF87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F7
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F7#FFFFFF#000000##000000
##AF87F71.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#659CFB
Deuteranopia (green-blind)
#6D9BF4
Tritanopia (blue-blind)
#A09BB3
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af87f7;
/* rgb */ color: rgb(175, 135, 247);
/* oklch */ color: oklch(70.8% 0.162 298.7);
Tailwind
colors: {
  custom: {
    50: '#c9aafa',
    500: '#af87f7',
    950: '#000000',
  },
}
SCSS
$custom: #af87f7;
$custom-light: #c9aafa;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f7",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 261.429,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.70763,
    "c": 0.16225,
    "h": 298.7
  },
  "luminance": 0.33157
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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