#8A87E2#8A87E2

#8A87E2 is a light, vivid blue. Relative luminance 0.282; OKLCH L 66.5% C 0.133 H 283.7°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8A87E2
RGBrgb(138, 135, 226)
HSLhsl(242, 61%, 71%)
HSVhsv(242, 40%, 89%)
CMYKcmyk(38.9%, 40.3%, 0%, 11.4%)
CIE-LABlab(60.09, 22.99, -45.95)
CIE-LCHlch(60.09, 51.38, 296.58°)
OKLaboklab(66.48% 0.0314 -0.1293)
OKLCHoklch(66.48% 0.133 283.7)
XYZxyz(32.8688, 28.2210, 75.6521)
Luminance0.2822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87E2 #DFE287
analogous
#87B1E2 #8A87E2 #B787E2
triadic
#8A87E2 #E28A87 #87E28A
tetradic
#8A87E2 #E287B1 #DFE287 #87E2B7
square
#8A87E2 #E287B1 #DFE287 #87E2B7
split-complementary
#8A87E2 #E2B787 #B1E287
monochromatic
#332EC0 #5A56D6 #8A87E2 #BAB8EE #E7E6F9

Accessibility & contrast

On white

3.16
#8A87E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#8A87E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87E2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87E2#FFFFFF#000000##000000
##8A87E21.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6894E6
Deuteranopia (green-blind)
#648EE0
Tritanopia (blue-blind)
#7199AA
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8a87e2;
/* rgb */ color: rgb(138, 135, 226);
/* oklch */ color: oklch(66.5% 0.133 283.7);
Tailwind
colors: {
  custom: {
    50: '#afaaeb',
    500: '#8a87e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a87e2;
$custom-light: #afaaeb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87e2",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 226
  },
  "hsl": {
    "h": 241.978,
    "s": 61.074,
    "l": 70.784
  },
  "oklch": {
    "l": 0.66483,
    "c": 0.13309,
    "h": 283.7
  },
  "luminance": 0.28222
}

Semantic roles & 50–950 ramp

primary
#8A87E2
secondary
#EEEFD6
accent
#C91DC3
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A87E2

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

Preview Lab → · Contrast checker → · Palette generator →

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