#AF87F9#AF87F9

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

Color values

HEX#AF87F9
RGBrgb(175, 135, 249)
HSLhsl(261, 90%, 75%)
HSVhsv(261, 46%, 98%)
CMYKcmyk(29.7%, 45.8%, 0%, 2.4%)
CIE-LABlab(64.39, 38.64, -51.66)
CIE-LCHlch(64.39, 64.51, 306.79°)
OKLaboklab(70.87% 0.0781 -0.1451)
OKLCHoklch(70.87% 0.165 298.3)
XYZxyz(43.4380, 33.2811, 93.7396)
Luminance0.3328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F9 #D1F987
analogous
#8798F9 #AF87F9 #E887F9
triadic
#AF87F9 #F9AF87 #87F9AF
tetradic
#AF87F9 #F98798 #D1F987 #87F9E8
square
#AF87F9 #F98798 #D1F987 #87F9E8
split-complementary
#AF87F9 #F9E887 #98F987
monochromatic
#6112F3 #884DF6 #AF87F9 #D6C1FC #ECE2FE

Accessibility & contrast

On white

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

On black

7.66
#AF87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F9
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F9#FFFFFF#000000##000000
##AF87F91.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#649CFD
Deuteranopia (green-blind)
#6C9BF6
Tritanopia (blue-blind)
#A09CB4
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #af87f9;
/* rgb */ color: rgb(175, 135, 249);
/* oklch */ color: oklch(70.9% 0.165 298.3);
Tailwind
colors: {
  custom: {
    50: '#c9aafc',
    500: '#af87f9',
    950: '#000000',
  },
}
SCSS
$custom: #af87f9;
$custom-light: #c9aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f9",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 261.053,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.7087,
    "c": 0.16478,
    "h": 298.3
  },
  "luminance": 0.33281
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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