#AF87FD#AF87FD

#AF87FD is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.1% C 0.170 H 297.6°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#AF87FD
RGBrgb(175, 135, 253)
HSLhsl(260, 97%, 76%)
HSVhsv(260, 47%, 99%)
CMYKcmyk(30.8%, 46.6%, 0%, 0.8%)
CIE-LABlab(64.59, 39.62, -53.53)
CIE-LCHlch(64.59, 66.60, 306.50°)
OKLaboklab(71.09% 0.0786 -0.1506)
OKLCHoklch(71.09% 0.17 297.6)
XYZxyz(44.0685, 33.5333, 97.0603)
Luminance0.3353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87FD #D5FD87
analogous
#879AFD #AF87FD #EA87FD
triadic
#AF87FD #FDAF87 #87FDAF
tetradic
#AF87FD #FD879A #D5FD87 #87FDEA
square
#AF87FD #FD879A #D5FD87 #87FDEA
split-complementary
#AF87FD #FDEA87 #9AFD87
monochromatic
#5F0FFB #874BFC #AF87FD #D7C3FE #EBE1FE

Accessibility & contrast

On white

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

On black

7.71
#AF87FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87FD
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87FD#FFFFFF#000000##000000
##AF87FD1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#619DFF
Deuteranopia (green-blind)
#699BFA
Tritanopia (blue-blind)
#9E9DB6
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af87fd;
/* rgb */ color: rgb(175, 135, 253);
/* oklch */ color: oklch(71.1% 0.170 297.6);
Tailwind
colors: {
  custom: {
    50: '#caaafe',
    500: '#af87fd',
    950: '#000000',
  },
}
SCSS
$custom: #af87fd;
$custom-light: #caaafe;
$custom-dark: #000000;
JSON
{
  "hex": "#af87fd",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 260.339,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.71088,
    "c": 0.16983,
    "h": 297.6
  },
  "luminance": 0.33534
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF87FD

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

Preview Lab → · Contrast checker → · Palette generator →

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