#AF87DA#AF87DA

#AF87DA is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.3% C 0.125 H 305.5°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#AF87DA
RGBrgb(175, 135, 218)
HSLhsl(269, 53%, 69%)
HSVhsv(269, 38%, 85%)
CMYKcmyk(19.7%, 38.1%, 0%, 14.5%)
CIE-LABlab(62.93, 31.31, -36.81)
CIE-LCHlch(62.93, 48.32, 310.39°)
OKLaboklab(69.3% 0.0729 -0.102)
OKLCHoklch(69.3% 0.125 305.5)
XYZxyz(38.9955, 31.5041, 70.3426)
Luminance0.3150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87DA #B2DA87
analogous
#8789DA #AF87DA #D987DA
triadic
#AF87DA #DAAF87 #87DAAF
tetradic
#AF87DA #DA8789 #B2DA87 #87DAD9
square
#AF87DA #DA8789 #B2DA87 #87DAD9
split-complementary
#AF87DA #DAD987 #89DA87
monochromatic
#7136B0 #9058CC #AF87DA #CEB6E8 #EDE5F7

Accessibility & contrast

On white

2.88
#AF87DA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#AF87DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87DA
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87DA#FFFFFF#000000##000000
##AF87DA1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7597DD
Deuteranopia (green-blind)
#7D98D8
Tritanopia (blue-blind)
#A994A6
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af87da;
/* rgb */ color: rgb(175, 135, 218);
/* oklch */ color: oklch(69.3% 0.125 305.5);
Tailwind
colors: {
  custom: {
    50: '#c8aae5',
    500: '#af87da',
    950: '#000000',
  },
}
SCSS
$custom: #af87da;
$custom-light: #c8aae5;
$custom-dark: #000000;
JSON
{
  "hex": "#af87da",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 218
  },
  "hsl": {
    "h": 268.916,
    "s": 52.866,
    "l": 69.216
  },
  "oklch": {
    "l": 0.69296,
    "c": 0.12539,
    "h": 305.5
  },
  "luminance": 0.31504
}

Semantic roles & 50–950 ramp

primary
#AF87DA
secondary
#DFEAD2
accent
#C02576
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF87DA

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

Preview Lab → · Contrast checker → · Palette generator →

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