#8A87DC#8A87DC

#8A87DC is a light, vivid blue. Relative luminance 0.279; OKLCH L 66.2% C 0.125 H 284.1°. Best body text is #000000 at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8A87DC
RGBrgb(138, 135, 220)
HSLhsl(242, 55%, 70%)
HSVhsv(242, 39%, 86%)
CMYKcmyk(37.3%, 38.6%, 0%, 13.7%)
CIE-LABlab(59.80, 21.35, -43.07)
CIE-LCHlch(59.80, 48.07, 296.36°)
OKLaboklab(66.16% 0.0303 -0.1209)
OKLCHoklch(66.16% 0.125 284.1)
XYZxyz(32.0599, 27.8974, 71.3918)
Luminance0.2790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87DC #D9DC87
analogous
#87AEDC #8A87DC #B587DC
triadic
#8A87DC #DC8A87 #87DC8A
tetradic
#8A87DC #DC87AE #D9DC87 #87DCB5
square
#8A87DC #DC87AE #D9DC87 #87DCB5
split-complementary
#8A87DC #DCB587 #AEDC87
monochromatic
#3935B4 #5C58CE #8A87DC #B8B6EA #E6E6F8

Accessibility & contrast

On white

3.19
#8A87DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.58
#8A87DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87DC
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87DC#FFFFFF#000000##000000
##8A87DC1.003.196.586.58
#FFFFFF3.191.0021.0021.00
#0000006.5821.001.001.00
##0000006.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B93DF
Deuteranopia (green-blind)
#688DDA
Tritanopia (blue-blind)
#7397A7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a87dc;
/* rgb */ color: rgb(138, 135, 220);
/* oklch */ color: oklch(66.2% 0.125 284.1);
Tailwind
colors: {
  custom: {
    50: '#afaae7',
    500: '#8a87dc',
    950: '#000000',
  },
}
SCSS
$custom: #8a87dc;
$custom-light: #afaae7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87dc",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 242.118,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.66165,
    "c": 0.12466,
    "h": 284.1
  },
  "luminance": 0.27899
}

Semantic roles & 50–950 ramp

primary
#8A87DC
secondary
#EBECD3
accent
#C223BD
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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