#AF87DD#AF87DD

#AF87DD is a light, vivid violet. Relative luminance 0.317; OKLCH L 69.4% C 0.129 H 304.7°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#AF87DD
RGBrgb(175, 135, 221)
HSLhsl(268, 56%, 70%)
HSVhsv(268, 39%, 87%)
CMYKcmyk(20.8%, 38.9%, 0%, 13.3%)
CIE-LABlab(63.06, 32.00, -38.27)
CIE-LCHlch(63.06, 49.89, 309.90°)
OKLaboklab(69.44% 0.0735 -0.1063)
OKLCHoklch(69.44% 0.129 304.7)
XYZxyz(39.3916, 31.6625, 72.4288)
Luminance0.3166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87DD #B5DD87
analogous
#878ADD #AF87DD #DA87DD
triadic
#AF87DD #DDAF87 #87DDAF
tetradic
#AF87DD #DD878A #B5DD87 #87DDDA
square
#AF87DD #DD878A #B5DD87 #87DDDA
split-complementary
#AF87DD #DDDA87 #8ADD87
monochromatic
#7034B6 #8F57CF #AF87DD #CFB7EB #EFE6F8

Accessibility & contrast

On white

2.86
#AF87DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#AF87DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87DD
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87DD#FFFFFF#000000##000000
##AF87DD1.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7397E0
Deuteranopia (green-blind)
#7C99DB
Tritanopia (blue-blind)
#A895A8
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af87dd;
/* rgb */ color: rgb(175, 135, 221);
/* oklch */ color: oklch(69.4% 0.129 304.7);
Tailwind
colors: {
  custom: {
    50: '#c8aae8',
    500: '#af87dd',
    950: '#000000',
  },
}
SCSS
$custom: #af87dd;
$custom-light: #c8aae8;
$custom-dark: #000000;
JSON
{
  "hex": "#af87dd",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 221
  },
  "hsl": {
    "h": 267.907,
    "s": 55.844,
    "l": 69.804
  },
  "oklch": {
    "l": 0.69439,
    "c": 0.12919,
    "h": 304.7
  },
  "luminance": 0.31662
}

Semantic roles & 50–950 ramp

primary
#AF87DD
secondary
#E1ECD4
accent
#C32278
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF87DD

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

Preview Lab → · Contrast checker → · Palette generator →

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