#AF87EF#AF87EF

#AF87EF is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.3% C 0.152 H 300.3°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#AF87EF
RGBrgb(175, 135, 239)
HSLhsl(263, 76%, 73%)
HSVhsv(263, 44%, 94%)
CMYKcmyk(26.8%, 43.5%, 0%, 6.3%)
CIE-LABlab(63.90, 36.22, -46.94)
CIE-LCHlch(63.90, 59.29, 307.65°)
OKLaboklab(70.34% 0.0767 -0.1314)
OKLCHoklch(70.34% 0.152 300.3)
XYZxyz(41.9196, 32.6737, 85.7428)
Luminance0.3267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87EF #C7EF87
analogous
#8793EF #AF87EF #E387EF
triadic
#AF87EF #EFAF87 #87EFAF
tetradic
#AF87EF #EF8793 #C7EF87 #87EFE3
square
#AF87EF #EF8793 #C7EF87 #87EFE3
split-complementary
#AF87EF #EFE387 #93EF87
monochromatic
#681EDE #8B51E8 #AF87EF #D3BDF6 #EDE4FB

Accessibility & contrast

On white

2.79
#AF87EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#AF87EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87EF
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87EF#FFFFFF#000000##000000
##AF87EF1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9AF3
Deuteranopia (green-blind)
#729AEC
Tritanopia (blue-blind)
#A399B0
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af87ef;
/* rgb */ color: rgb(175, 135, 239);
/* oklch */ color: oklch(70.3% 0.152 300.3);
Tailwind
colors: {
  custom: {
    50: '#c9aaf4',
    500: '#af87ef',
    950: '#000000',
  },
}
SCSS
$custom: #af87ef;
$custom-light: #c9aaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af87ef",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 263.077,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.7034,
    "c": 0.1521,
    "h": 300.3
  },
  "luminance": 0.32674
}

Semantic roles & 50–950 ramp

primary
#AF87EF
secondary
#E9F3D8
accent
#D90D8A
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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