#8A87E4#8A87E4

#8A87E4 is a light, vivid blue. Relative luminance 0.283; OKLCH L 66.6% C 0.136 H 283.5°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8A87E4
RGBrgb(138, 135, 228)
HSLhsl(242, 63%, 71%)
HSVhsv(242, 41%, 89%)
CMYKcmyk(39.5%, 40.8%, 0%, 10.6%)
CIE-LABlab(60.19, 23.54, -46.91)
CIE-LCHlch(60.19, 52.49, 296.65°)
OKLaboklab(66.59% 0.0318 -0.1321)
OKLCHoklch(66.59% 0.136 283.5)
XYZxyz(33.1448, 28.3314, 77.1059)
Luminance0.2833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87E4 #E1E487
analogous
#87B2E4 #8A87E4 #B887E4
triadic
#8A87E4 #E48A87 #87E48A
tetradic
#8A87E4 #E487B2 #E1E487 #87E4B8
square
#8A87E4 #E487B2 #E1E487 #87E4B8
split-complementary
#8A87E4 #E4B887 #B2E487
monochromatic
#312CC4 #5955D9 #8A87E4 #BBB9EF #E7E6F9

Accessibility & contrast

On white

3.15
#8A87E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#8A87E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87E4
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87E4#FFFFFF#000000##000000
##8A87E41.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6794E8
Deuteranopia (green-blind)
#638EE2
Tritanopia (blue-blind)
#7099AA
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #8a87e4;
/* rgb */ color: rgb(138, 135, 228);
/* oklch */ color: oklch(66.6% 0.136 283.5);
Tailwind
colors: {
  custom: {
    50: '#b0aaed',
    500: '#8a87e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a87e4;
$custom-light: #b0aaed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87e4",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 228
  },
  "hsl": {
    "h": 241.935,
    "s": 63.265,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66591,
    "c": 0.13589,
    "h": 283.5
  },
  "luminance": 0.28333
}

Semantic roles & 50–950 ramp

primary
#8A87E4
secondary
#EFF0D7
accent
#CB1AC5
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A87E4

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

Preview Lab → · Contrast checker → · Palette generator →

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