#AF87FB#AF87FB

#AF87FB is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.0% C 0.167 H 297.9°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#AF87FB
RGBrgb(175, 135, 251)
HSLhsl(261, 94%, 76%)
HSVhsv(261, 46%, 98%)
CMYKcmyk(30.3%, 46.2%, 0%, 1.6%)
CIE-LABlab(64.49, 39.13, -52.60)
CIE-LCHlch(64.49, 65.56, 306.64°)
OKLaboklab(70.98% 0.0783 -0.1478)
OKLCHoklch(70.98% 0.167 297.9)
XYZxyz(43.7516, 33.4065, 95.3912)
Luminance0.3341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87FB #D3FB87
analogous
#8799FB #AF87FB #E987FB
triadic
#AF87FB #FBAF87 #87FBAF
tetradic
#AF87FB #FB8799 #D3FB87 #87FBE9
square
#AF87FB #FB8799 #D3FB87 #87FBE9
split-complementary
#AF87FB #FBE987 #99FB87
monochromatic
#6011F7 #884CF9 #AF87FB #D6C2FD #EBE1FE

Accessibility & contrast

On white

2.73
#AF87FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#AF87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87FB
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87FB#FFFFFF#000000##000000
##AF87FB1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#629DFF
Deuteranopia (green-blind)
#6B9BF8
Tritanopia (blue-blind)
#9F9CB5
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af87fb;
/* rgb */ color: rgb(175, 135, 251);
/* oklch */ color: oklch(71.0% 0.167 297.9);
Tailwind
colors: {
  custom: {
    50: '#caaafd',
    500: '#af87fb',
    950: '#000000',
  },
}
SCSS
$custom: #af87fb;
$custom-light: #caaafd;
$custom-dark: #000000;
JSON
{
  "hex": "#af87fb",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 260.69,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.70979,
    "c": 0.1673,
    "h": 297.9
  },
  "luminance": 0.33407
}

Semantic roles & 50–950 ramp

primary
#AF87FB
secondary
#EBF6D5
accent
#E60096
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AF87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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