#AF87F5#AF87F5

#AF87F5 is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.7% C 0.160 H 299.0°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AF87F5
RGBrgb(175, 135, 245)
HSLhsl(262, 85%, 75%)
HSVhsv(262, 45%, 96%)
CMYKcmyk(28.6%, 44.9%, 0%, 3.9%)
CIE-LABlab(64.19, 37.66, -49.78)
CIE-LCHlch(64.19, 62.42, 307.11°)
OKLaboklab(70.66% 0.0775 -0.1396)
OKLCHoklch(70.66% 0.16 299)
XYZxyz(42.8207, 33.0342, 90.4888)
Luminance0.3303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F5 #CDF587
analogous
#8796F5 #AF87F5 #E687F5
triadic
#AF87F5 #F5AF87 #87F5AF
tetradic
#AF87F5 #F58796 #CDF587 #87F5E6
square
#AF87F5 #F58796 #CDF587 #87F5E6
split-complementary
#AF87F5 #F5E687 #96F587
monochromatic
#6416EC #894FF0 #AF87F5 #D5BFFA #ECE3FD

Accessibility & contrast

On white

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

On black

7.61
#AF87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F5
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F5#FFFFFF#000000##000000
##AF87F51.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#669CF9
Deuteranopia (green-blind)
#6F9BF2
Tritanopia (blue-blind)
#A19BB2
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af87f5;
/* rgb */ color: rgb(175, 135, 245);
/* oklch */ color: oklch(70.7% 0.160 299.0);
Tailwind
colors: {
  custom: {
    50: '#c9aaf9',
    500: '#af87f5',
    950: '#000000',
  },
}
SCSS
$custom: #af87f5;
$custom-light: #c9aaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f5",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 261.818,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.70656,
    "c": 0.15972,
    "h": 299
  },
  "luminance": 0.33034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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