#AF87DC#AF87DC

#AF87DC is a light, vivid violet. Relative luminance 0.316; OKLCH L 69.4% C 0.128 H 304.9°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#AF87DC
RGBrgb(175, 135, 220)
HSLhsl(268, 55%, 70%)
HSVhsv(268, 39%, 86%)
CMYKcmyk(20.5%, 38.6%, 0%, 13.7%)
CIE-LABlab(63.02, 31.77, -37.78)
CIE-LCHlch(63.02, 49.36, 310.06°)
OKLaboklab(69.39% 0.0733 -0.1049)
OKLCHoklch(69.39% 0.128 304.9)
XYZxyz(39.2588, 31.6094, 71.7293)
Luminance0.3161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87DC #B4DC87
analogous
#878ADC #AF87DC #D987DC
triadic
#AF87DC #DCAF87 #87DCAF
tetradic
#AF87DC #DC878A #B4DC87 #87DCD9
square
#AF87DC #DC878A #B4DC87 #87DCD9
split-complementary
#AF87DC #DCD987 #8ADC87
monochromatic
#7135B4 #8F58CE #AF87DC #CFB6EA #EEE6F8

Accessibility & contrast

On white

2.87
#AF87DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#AF87DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87DC
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87DC#FFFFFF#000000##000000
##AF87DC1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7497DF
Deuteranopia (green-blind)
#7C99DA
Tritanopia (blue-blind)
#A894A7
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af87dc;
/* rgb */ color: rgb(175, 135, 220);
/* oklch */ color: oklch(69.4% 0.128 304.9);
Tailwind
colors: {
  custom: {
    50: '#c8aae7',
    500: '#af87dc',
    950: '#000000',
  },
}
SCSS
$custom: #af87dc;
$custom-light: #c8aae7;
$custom-dark: #000000;
JSON
{
  "hex": "#af87dc",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 268.235,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.69391,
    "c": 0.12793,
    "h": 304.9
  },
  "luminance": 0.31609
}

Semantic roles & 50–950 ramp

primary
#AF87DC
secondary
#E0ECD3
accent
#C22377
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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