#AE87EC#AE87EC

#AE87EC is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.1% C 0.148 H 300.4°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#AE87EC
RGBrgb(174, 135, 236)
HSLhsl(263, 73%, 73%)
HSVhsv(263, 43%, 93%)
CMYKcmyk(26.3%, 42.8%, 0%, 7.5%)
CIE-LABlab(63.66, 35.22, -45.66)
CIE-LCHlch(63.66, 57.67, 307.65°)
OKLaboklab(70.09% 0.075 -0.1277)
OKLCHoklch(70.09% 0.148 300.4)
XYZxyz(41.2564, 32.3826, 83.4176)
Luminance0.3238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AE87EC #C5EC87
analogous
#8793EC #AE87EC #E087EC
triadic
#AE87EC #ECAE87 #87ECAE
tetradic
#AE87EC #EC8793 #C5EC87 #87ECE0
square
#AE87EC #EC8793 #C5EC87 #87ECE0
split-complementary
#AE87EC #ECE087 #93EC87
monochromatic
#6822D7 #8A52E4 #AE87EC #D2BCF4 #EDE5FB

Accessibility & contrast

On white

2.81
#AE87EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#AE87EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AE87EC
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AE87EC#FFFFFF#000000##000000
##AE87EC1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ae87ec;
/* rgb */ color: rgb(174, 135, 236);
/* oklch */ color: oklch(70.1% 0.148 300.4);
Tailwind
colors: {
  custom: {
    50: '#c8aaf2',
    500: '#ae87ec',
    950: '#000000',
  },
}
SCSS
$custom: #ae87ec;
$custom-light: #c8aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ae87ec",
  "rgb": {
    "r": 174,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 263.168,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.70092,
    "c": 0.14809,
    "h": 300.4
  },
  "luminance": 0.32383
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AE87EC

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

Preview Lab → · Contrast checker → · Palette generator →

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