#AF87EC#AF87EC

#AF87EC is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.2% C 0.148 H 300.9°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#AF87EC
RGBrgb(175, 135, 236)
HSLhsl(264, 73%, 73%)
HSVhsv(264, 43%, 93%)
CMYKcmyk(25.8%, 42.8%, 0%, 7.5%)
CIE-LABlab(63.75, 35.50, -45.51)
CIE-LCHlch(63.75, 57.72, 307.96°)
OKLaboklab(70.19% 0.0762 -0.1272)
OKLCHoklch(70.19% 0.148 300.9)
XYZxyz(41.4801, 32.4979, 83.4280)
Luminance0.3250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF87EC #C4EC87
analogous
#8792EC #AF87EC #E187EC
triadic
#AF87EC #ECAF87 #87ECAF
tetradic
#AF87EC #EC8792 #C4EC87 #87ECE1
square
#AF87EC #EC8792 #C4EC87 #87ECE1
split-complementary
#AF87EC #ECE187 #92EC87
monochromatic
#6A22D7 #8C52E4 #AF87EC #D2BCF4 #EDE5FB

Accessibility & contrast

On white

2.80
#AF87EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#AF87EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF87EC
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF87EC#FFFFFF#000000##000000
##AF87EC1.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9AF0
Deuteranopia (green-blind)
#749AE9
Tritanopia (blue-blind)
#A498AE
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af87ec;
/* rgb */ color: rgb(175, 135, 236);
/* oklch */ color: oklch(70.2% 0.148 300.9);
Tailwind
colors: {
  custom: {
    50: '#c9aaf2',
    500: '#af87ec',
    950: '#000000',
  },
}
SCSS
$custom: #af87ec;
$custom-light: #c9aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af87ec",
  "rgb": {
    "r": 175,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 263.762,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.70185,
    "c": 0.14828,
    "h": 300.9
  },
  "luminance": 0.32498
}

Semantic roles & 50–950 ramp

primary
#AF87EC
secondary
#E8F2D9
accent
#D51187
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AF87EC

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

Preview Lab → · Contrast checker → · Palette generator →

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