#8A87EC#8A87EC

#8A87EC is a light, vivid blue. Relative luminance 0.288; OKLCH L 67.0% C 0.147 H 283.0°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8A87EC
RGBrgb(138, 135, 236)
HSLhsl(242, 73%, 73%)
HSVhsv(242, 43%, 93%)
CMYKcmyk(41.5%, 42.8%, 0%, 7.5%)
CIE-LABlab(60.59, 25.77, -50.71)
CIE-LCHlch(60.59, 56.88, 296.94°)
OKLaboklab(67.03% 0.0331 -0.1432)
OKLCHoklch(67.03% 0.147 283)
XYZxyz(34.2811, 28.7859, 83.0906)
Luminance0.2879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87EC #E9EC87
analogous
#87B7EC #8A87EC #BC87EC
triadic
#8A87EC #EC8A87 #87EC8A
tetradic
#8A87EC #EC87B7 #E9EC87 #87ECBC
square
#8A87EC #EC87B7 #E9EC87 #87ECBC
split-complementary
#8A87EC #ECBC87 #B7EC87
monochromatic
#2722D7 #5652E4 #8A87EC #BEBCF4 #E5E5FB

Accessibility & contrast

On white

3.11
#8A87EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#8A87EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87EC
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87EC#FFFFFF#000000##000000
##8A87EC1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6296F0
Deuteranopia (green-blind)
#5D8FEA
Tritanopia (blue-blind)
#6C9BAE
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a87ec;
/* rgb */ color: rgb(138, 135, 236);
/* oklch */ color: oklch(67.0% 0.147 283.0);
Tailwind
colors: {
  custom: {
    50: '#b0aaf2',
    500: '#8a87ec',
    950: '#000000',
  },
}
SCSS
$custom: #8a87ec;
$custom-light: #b0aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87ec",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 241.782,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.67031,
    "c": 0.14699,
    "h": 283
  },
  "luminance": 0.28787
}

Semantic roles & 50–950 ramp

primary
#8A87EC
secondary
#F2F2D9
accent
#D511CF
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111017
muted
#807F85

Preview Lab

Preview with #8A87EC

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

Preview Lab → · Contrast checker → · Palette generator →

#8A87EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva