#8E87F2#8E87F2

#8E87F2 is a light, vivid blue. Relative luminance 0.295; OKLCH L 67.7% C 0.155 H 284.4°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8E87F2
RGBrgb(142, 135, 242)
HSLhsl(244, 80%, 74%)
HSVhsv(244, 44%, 95%)
CMYKcmyk(41.3%, 44.2%, 0%, 5.1%)
CIE-LABlab(61.21, 28.43, -53.03)
CIE-LCHlch(61.21, 60.17, 298.20°)
OKLaboklab(67.68% 0.0386 -0.1499)
OKLCHoklch(67.68% 0.155 284.4)
XYZxyz(35.8417, 29.4881, 87.7905)
Luminance0.2949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E87F2 #EBF287
analogous
#87B6F2 #8E87F2 #C487F2
triadic
#8E87F2 #F28E87 #87F28E
tetradic
#8E87F2 #F287B6 #EBF287 #87F2C4
square
#8E87F2 #F287B6 #EBF287 #87F2C4
split-complementary
#8E87F2 #F2C487 #B6F287
monochromatic
#2619E6 #5A50EC #8E87F2 #C2BEF8 #E5E3FC

Accessibility & contrast

On white

3.04
#8E87F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#8E87F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E87F2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E87F2#FFFFFF#000000##000000
##8E87F21.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F97F6
Deuteranopia (green-blind)
#5B90F0
Tritanopia (blue-blind)
#709DB1
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8e87f2;
/* rgb */ color: rgb(142, 135, 242);
/* oklch */ color: oklch(67.7% 0.155 284.4);
Tailwind
colors: {
  custom: {
    50: '#b3aaf7',
    500: '#8e87f2',
    950: '#000000',
  },
}
SCSS
$custom: #8e87f2;
$custom-light: #b3aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e87f2",
  "rgb": {
    "r": 142,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 243.925,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.67678,
    "c": 0.15478,
    "h": 284.4
  },
  "luminance": 0.2949
}

Semantic roles & 50–950 ramp

primary
#8E87F2
secondary
#F2F4D7
accent
#DD09CF
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111017
muted
#807F85

Preview Lab

Preview with #8E87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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