#8A87ED#8A87ED

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

Color values

HEX#8A87ED
RGBrgb(138, 135, 237)
HSLhsl(242, 74%, 73%)
HSVhsv(242, 43%, 93%)
CMYKcmyk(41.8%, 43%, 0%, 7.1%)
CIE-LABlab(60.64, 26.05, -51.18)
CIE-LCHlch(60.64, 57.43, 296.98°)
OKLaboklab(67.09% 0.0333 -0.1446)
OKLCHoklch(67.09% 0.148 283)
XYZxyz(34.4268, 28.8442, 83.8579)
Luminance0.2885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87ED #EAED87
analogous
#87B7ED #8A87ED #BD87ED
triadic
#8A87ED #ED8A87 #87ED8A
tetradic
#8A87ED #ED87B7 #EAED87 #87EDBD
square
#8A87ED #ED87B7 #EAED87 #87EDBD
split-complementary
#8A87ED #EDBD87 #B7ED87
monochromatic
#2621D9 #5652E5 #8A87ED #BEBCF5 #E5E4FB

Accessibility & contrast

On white

3.10
#8A87ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#8A87ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87ED
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87ED#FFFFFF#000000##000000
##8A87ED1.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6196F1
Deuteranopia (green-blind)
#5D8FEB
Tritanopia (blue-blind)
#6C9CAF
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a87ed;
/* rgb */ color: rgb(138, 135, 237);
/* oklch */ color: oklch(67.1% 0.148 283.0);
Tailwind
colors: {
  custom: {
    50: '#b0aaf3',
    500: '#8a87ed',
    950: '#000000',
  },
}
SCSS
$custom: #8a87ed;
$custom-light: #b0aaf3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87ed",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 237
  },
  "hsl": {
    "h": 241.765,
    "s": 73.913,
    "l": 72.941
  },
  "oklch": {
    "l": 0.67087,
    "c": 0.14838,
    "h": 283
  },
  "luminance": 0.28846
}

Semantic roles & 50–950 ramp

primary
#8A87ED
secondary
#F2F3D8
accent
#D60FD0
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111017
muted
#807F85

Preview Lab

Preview with #8A87ED

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

Preview Lab → · Contrast checker → · Palette generator →

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