#8A87EA#8A87EA

#8A87EA is a light, vivid blue. Relative luminance 0.287; OKLCH L 66.9% C 0.144 H 283.2°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8A87EA
RGBrgb(138, 135, 234)
HSLhsl(242, 70%, 72%)
HSVhsv(242, 42%, 92%)
CMYKcmyk(41%, 42.3%, 0%, 8.2%)
CIE-LABlab(60.49, 25.21, -49.76)
CIE-LCHlch(60.49, 55.79, 296.87°)
OKLaboklab(66.92% 0.0328 -0.1404)
OKLCHoklch(66.92% 0.144 283.2)
XYZxyz(33.9922, 28.6704, 81.5688)
Luminance0.2867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87EA #E7EA87
analogous
#87B6EA #8A87EA #BB87EA
triadic
#8A87EA #EA8A87 #87EA8A
tetradic
#8A87EA #EA87B6 #E7EA87 #87EABB
square
#8A87EA #EA87B6 #E7EA87 #87EABB
split-complementary
#8A87EA #EABB87 #B6EA87
monochromatic
#2A25D2 #5753E1 #8A87EA #BDBBF3 #E6E5FA

Accessibility & contrast

On white

3.12
#8A87EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#8A87EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87EA
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87EA#FFFFFF#000000##000000
##8A87EA1.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6395EE
Deuteranopia (green-blind)
#5F8FE8
Tritanopia (blue-blind)
#6D9BAD
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #8a87ea;
/* rgb */ color: rgb(138, 135, 234);
/* oklch */ color: oklch(66.9% 0.144 283.2);
Tailwind
colors: {
  custom: {
    50: '#b0aaf1',
    500: '#8a87ea',
    950: '#000000',
  },
}
SCSS
$custom: #8a87ea;
$custom-light: #b0aaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87ea",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 241.818,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.6692,
    "c": 0.14422,
    "h": 283.2
  },
  "luminance": 0.28672
}

Semantic roles & 50–950 ramp

primary
#8A87EA
secondary
#F1F2D9
accent
#D213CC
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111017
muted
#807F85

Preview Lab

Preview with #8A87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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