#8A87DE#8A87DE

#8A87DE is a light, vivid blue. Relative luminance 0.280; OKLCH L 66.3% C 0.127 H 283.9°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8A87DE
RGBrgb(138, 135, 222)
HSLhsl(242, 57%, 70%)
HSVhsv(242, 39%, 87%)
CMYKcmyk(37.8%, 39.2%, 0%, 12.9%)
CIE-LABlab(59.89, 21.89, -44.03)
CIE-LCHlch(59.89, 49.17, 296.43°)
OKLaboklab(66.27% 0.0307 -0.1237)
OKLCHoklch(66.27% 0.127 283.9)
XYZxyz(32.3263, 28.0040, 72.7952)
Luminance0.2801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87DE #DBDE87
analogous
#87AFDE #8A87DE #B687DE
triadic
#8A87DE #DE8A87 #87DE8A
tetradic
#8A87DE #DE87AF #DBDE87 #87DEB6
square
#8A87DE #DE87AF #DBDE87 #87DEB6
split-complementary
#8A87DE #DEB687 #AFDE87
monochromatic
#3733B8 #5B57D1 #8A87DE #B9B7EB #E8E7F8

Accessibility & contrast

On white

3.18
#8A87DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#8A87DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87DE
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87DE#FFFFFF#000000##000000
##8A87DE1.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A93E1
Deuteranopia (green-blind)
#678EDC
Tritanopia (blue-blind)
#7398A8
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a87de;
/* rgb */ color: rgb(138, 135, 222);
/* oklch */ color: oklch(66.3% 0.127 283.9);
Tailwind
colors: {
  custom: {
    50: '#afaae8',
    500: '#8a87de',
    950: '#000000',
  },
}
SCSS
$custom: #8a87de;
$custom-light: #afaae8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87de",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 222
  },
  "hsl": {
    "h": 242.069,
    "s": 56.863,
    "l": 70
  },
  "oklch": {
    "l": 0.6627,
    "c": 0.12747,
    "h": 283.9
  },
  "luminance": 0.28005
}

Semantic roles & 50–950 ramp

primary
#8A87DE
secondary
#ECEDD4
accent
#C421BF
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A87DE

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

Preview Lab → · Contrast checker → · Palette generator →

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