#8A87EE#8A87EE

#8A87EE is a light, vivid blue. Relative luminance 0.289; OKLCH L 67.1% C 0.150 H 282.9°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8A87EE
RGBrgb(138, 135, 238)
HSLhsl(242, 75%, 73%)
HSVhsv(242, 43%, 93%)
CMYKcmyk(42%, 43.3%, 0%, 6.7%)
CIE-LABlab(60.70, 26.33, -51.65)
CIE-LCHlch(60.70, 57.98, 297.01°)
OKLaboklab(67.14% 0.0335 -0.146)
OKLCHoklch(67.14% 0.15 282.9)
XYZxyz(34.5733, 28.9028, 84.6295)
Luminance0.2890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87EE #EBEE87
analogous
#87B7EE #8A87EE #BE87EE
triadic
#8A87EE #EE8A87 #87EE8A
tetradic
#8A87EE #EE87B7 #EBEE87 #87EEBE
square
#8A87EE #EE87B7 #EBEE87 #87EEBE
split-complementary
#8A87EE #EEBE87 #B7EE87
monochromatic
#251FDC #5651E6 #8A87EE #BEBDF6 #E5E4FB

Accessibility & contrast

On white

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

On black

6.78
#8A87EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87EE
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87EE#FFFFFF#000000##000000
##8A87EE1.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6196F2
Deuteranopia (green-blind)
#5C8FEC
Tritanopia (blue-blind)
#6B9CAF
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a87ee;
/* rgb */ color: rgb(138, 135, 238);
/* oklch */ color: oklch(67.1% 0.150 282.9);
Tailwind
colors: {
  custom: {
    50: '#b0aaf4',
    500: '#8a87ee',
    950: '#000000',
  },
}
SCSS
$custom: #8a87ee;
$custom-light: #b0aaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87ee",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 241.748,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.67144,
    "c": 0.14975,
    "h": 282.9
  },
  "luminance": 0.28904
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A87EE

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

Preview Lab → · Contrast checker → · Palette generator →

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