#8A87EF#8A87EF

#8A87EF is a light, vivid blue. Relative luminance 0.290; OKLCH L 67.2% C 0.151 H 282.8°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8A87EF
RGBrgb(138, 135, 239)
HSLhsl(242, 76%, 73%)
HSVhsv(242, 44%, 94%)
CMYKcmyk(42.3%, 43.5%, 0%, 6.3%)
CIE-LABlab(60.75, 26.62, -52.12)
CIE-LCHlch(60.75, 58.53, 297.05°)
OKLaboklab(67.2% 0.0336 -0.1473)
OKLCHoklch(67.2% 0.151 282.8)
XYZxyz(34.7207, 28.9618, 85.4054)
Luminance0.2896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87EF #ECEF87
analogous
#87B8EF #8A87EF #BE87EF
triadic
#8A87EF #EF8A87 #87EF8A
tetradic
#8A87EF #EF87B8 #ECEF87 #87EFBE
square
#8A87EF #EF87B8 #ECEF87 #87EFBE
split-complementary
#8A87EF #EFBE87 #B8EF87
monochromatic
#231EDE #5551E8 #8A87EF #BFBDF6 #E5E4FB

Accessibility & contrast

On white

3.09
#8A87EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#8A87EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87EF
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87EF#FFFFFF#000000##000000
##8A87EF1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6096F3
Deuteranopia (green-blind)
#5B8FED
Tritanopia (blue-blind)
#6B9CAF
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a87ef;
/* rgb */ color: rgb(138, 135, 239);
/* oklch */ color: oklch(67.2% 0.151 282.8);
Tailwind
colors: {
  custom: {
    50: '#b1aaf5',
    500: '#8a87ef',
    950: '#000000',
  },
}
SCSS
$custom: #8a87ef;
$custom-light: #b1aaf5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87ef",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 241.731,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.672,
    "c": 0.15112,
    "h": 282.8
  },
  "luminance": 0.28963
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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