#AF87FA#AF87FA

#AF87FA is a light, vivid violet. Relative luminance 0.333; OKLCH L 70.9% C 0.166 H 298.1°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#AF87FA
RGBrgb(175, 135, 250)
HSLhsl(261, 92%, 75%)
HSVhsv(261, 46%, 98%)
CMYKcmyk(30%, 46%, 0%, 2%)
CIE-LABlab(64.44, 38.88, -52.13)
CIE-LCHlch(64.44, 65.03, 306.72°)
OKLaboklab(70.92% 0.0782 -0.1465)
OKLCHoklch(70.92% 0.166 298.1)
XYZxyz(43.5944, 33.3436, 94.5632)
Luminance0.3334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87FA #D2FA87
analogous
#8798FA #AF87FA #E987FA
triadic
#AF87FA #FAAF87 #87FAAF
tetradic
#AF87FA #FA8798 #D2FA87 #87FAE9
square
#AF87FA #FA8798 #D2FA87 #87FAE9
split-complementary
#AF87FA #FAE987 #98FA87
monochromatic
#6111F5 #884CF8 #AF87FA #D6C2FC #EBE2FE

Accessibility & contrast

On white

2.74
#AF87FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#AF87FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87FA
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87FA#FFFFFF#000000##000000
##AF87FA1.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#639CFE
Deuteranopia (green-blind)
#6B9BF7
Tritanopia (blue-blind)
#9F9CB5
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af87fa;
/* rgb */ color: rgb(175, 135, 250);
/* oklch */ color: oklch(70.9% 0.166 298.1);
Tailwind
colors: {
  custom: {
    50: '#caaafc',
    500: '#af87fa',
    950: '#000000',
  },
}
SCSS
$custom: #af87fa;
$custom-light: #caaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#af87fa",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 260.87,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.70924,
    "c": 0.16605,
    "h": 298.1
  },
  "luminance": 0.33344
}

Semantic roles & 50–950 ramp

primary
#AF87FA
secondary
#EAF6D5
accent
#E60096
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF87FA

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

Preview Lab → · Contrast checker → · Palette generator →

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