#8E87C2#8E87C2

#8E87C2 is a light, moderate blue. Relative luminance 0.270; OKLCH L 65.2% C 0.087 H 289.2°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#8E87C2
RGBrgb(142, 135, 194)
HSLhsl(247, 33%, 65%)
HSVhsv(247, 30%, 76%)
CMYKcmyk(26.8%, 30.4%, 0%, 23.9%)
CIE-LABlab(58.95, 15.68, -29.75)
CIE-LCHlch(58.95, 33.63, 297.80°)
OKLaboklab(65.21% 0.0287 -0.0824)
OKLCHoklch(65.21% 0.087 289.2)
XYZxyz(29.5545, 26.9732, 54.6777)
Luminance0.2697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E87C2 #BBC287
analogous
#879EC2 #8E87C2 #AC87C2
triadic
#8E87C2 #C28E87 #87C28E
tetradic
#8E87C2 #C2879E #BBC287 #87C2AC
square
#8E87C2 #C2879E #BBC287 #87C2AC
split-complementary
#8E87C2 #C2AC87 #9EC287
monochromatic
#4E4689 #685EAD #8E87C2 #B4B0D7 #DAD8EB

Accessibility & contrast

On white

3.28
#8E87C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#8E87C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E87C2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E87C2#FFFFFF#000000##000000
##8E87C21.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#778FC4
Deuteranopia (green-blind)
#778CC0
Tritanopia (blue-blind)
#82919C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8e87c2;
/* rgb */ color: rgb(142, 135, 194);
/* oklch */ color: oklch(65.2% 0.087 289.2);
Tailwind
colors: {
  custom: {
    50: '#b0aad4',
    500: '#8e87c2',
    950: '#000000',
  },
}
SCSS
$custom: #8e87c2;
$custom-light: #b0aad4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e87c2",
  "rgb": {
    "r": 142,
    "g": 135,
    "b": 194
  },
  "hsl": {
    "h": 247.119,
    "s": 32.597,
    "l": 64.51
  },
  "oklch": {
    "l": 0.65212,
    "c": 0.08723,
    "h": 289.2
  },
  "luminance": 0.26974
}

Semantic roles & 50–950 ramp

primary
#8E87C2
secondary
#DADDC8
accent
#AB3A9E
background
#FAFAFD
surface
#F5F4FA
border
#CFCED3
text
#101014
muted
#7F7F83

Preview Lab

Preview with #8E87C2

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

Preview Lab → · Contrast checker → · Palette generator →

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