#AF87F8#AF87F8

#AF87F8 is a light, vivid violet. Relative luminance 0.332; OKLCH L 70.8% C 0.164 H 298.5°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#AF87F8
RGBrgb(175, 135, 248)
HSLhsl(261, 89%, 75%)
HSVhsv(261, 46%, 97%)
CMYKcmyk(29.4%, 45.6%, 0%, 2.7%)
CIE-LABlab(64.34, 38.39, -51.19)
CIE-LCHlch(64.34, 63.99, 306.87°)
OKLaboklab(70.82% 0.078 -0.1437)
OKLCHoklch(70.82% 0.164 298.5)
XYZxyz(43.2824, 33.2188, 92.9203)
Luminance0.3322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87F8 #D0F887
analogous
#8797F8 #AF87F8 #E787F8
triadic
#AF87F8 #F8AF87 #87F8AF
tetradic
#AF87F8 #F88797 #D0F887 #87F8E7
square
#AF87F8 #F88797 #D0F887 #87F8E7
split-complementary
#AF87F8 #F8E787 #97F887
monochromatic
#6213F1 #884DF5 #AF87F8 #D6C1FB #ECE2FD

Accessibility & contrast

On white

2.75
#AF87F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#AF87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87F8
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87F8#FFFFFF#000000##000000
##AF87F81.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af87f8;
/* rgb */ color: rgb(175, 135, 248);
/* oklch */ color: oklch(70.8% 0.164 298.5);
Tailwind
colors: {
  custom: {
    50: '#c9aafb',
    500: '#af87f8',
    950: '#000000',
  },
}
SCSS
$custom: #af87f8;
$custom-light: #c9aafb;
$custom-dark: #000000;
JSON
{
  "hex": "#af87f8",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 261.239,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.70816,
    "c": 0.16352,
    "h": 298.5
  },
  "luminance": 0.33219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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