#8E87F0#8E87F0

#8E87F0 is a light, vivid blue. Relative luminance 0.294; OKLCH L 67.6% C 0.152 H 284.6°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8E87F0
RGBrgb(142, 135, 240)
HSLhsl(244, 78%, 74%)
HSVhsv(244, 44%, 94%)
CMYKcmyk(40.8%, 43.8%, 0%, 5.9%)
CIE-LABlab(61.11, 27.87, -52.09)
CIE-LCHlch(61.11, 59.08, 298.15°)
OKLaboklab(67.57% 0.0383 -0.1471)
OKLCHoklch(67.57% 0.152 284.6)
XYZxyz(35.5430, 29.3686, 86.2171)
Luminance0.2937 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E87F0 #E9F087
analogous
#87B4F0 #8E87F0 #C287F0
triadic
#8E87F0 #F08E87 #87F08E
tetradic
#8E87F0 #F087B4 #E9F087 #87F0C2
square
#8E87F0 #F087B4 #E9F087 #87F0C2
split-complementary
#8E87F0 #F0C287 #B4F087
monochromatic
#291CE1 #5B51E9 #8E87F0 #C1BDF7 #E5E4FC

Accessibility & contrast

On white

3.05
#8E87F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#8E87F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E87F0
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E87F0#FFFFFF#000000##000000
##8E87F01.003.056.876.87
#FFFFFF3.051.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6097F4
Deuteranopia (green-blind)
#5D90EE
Tritanopia (blue-blind)
#719CB0
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8e87f0;
/* rgb */ color: rgb(142, 135, 240);
/* oklch */ color: oklch(67.6% 0.152 284.6);
Tailwind
colors: {
  custom: {
    50: '#b3aaf5',
    500: '#8e87f0',
    950: '#000000',
  },
}
SCSS
$custom: #8e87f0;
$custom-light: #b3aaf5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e87f0",
  "rgb": {
    "r": 142,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 244,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.67565,
    "c": 0.15205,
    "h": 284.6
  },
  "luminance": 0.2937
}

Semantic roles & 50–950 ramp

primary
#8E87F0
secondary
#F2F3D8
accent
#DA0BCC
background
#FBFAFF
surface
#F6F4FE
border
#D0CED6
text
#111017
muted
#807F85

Preview Lab

Preview with #8E87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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