#8A87DF#8A87DF

#8A87DF is a light, vivid blue. Relative luminance 0.281; OKLCH L 66.3% C 0.129 H 283.9°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8A87DF
RGBrgb(138, 135, 223)
HSLhsl(242, 58%, 70%)
HSVhsv(242, 39%, 87%)
CMYKcmyk(38.1%, 39.5%, 0%, 12.5%)
CIE-LABlab(59.94, 22.17, -44.51)
CIE-LCHlch(59.94, 49.73, 296.47°)
OKLaboklab(66.32% 0.0309 -0.1251)
OKLCHoklch(66.32% 0.129 283.9)
XYZxyz(32.4607, 28.0578, 73.5031)
Luminance0.2806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87DF #DCDF87
analogous
#87B0DF #8A87DF #B687DF
triadic
#8A87DF #DF8A87 #87DF8A
tetradic
#8A87DF #DF87B0 #DCDF87 #87DFB6
square
#8A87DF #DF87B0 #DCDF87 #87DFB6
split-complementary
#8A87DF #DFB687 #B0DF87
monochromatic
#3632BA #5B57D2 #8A87DF #B9B7EC #E7E7F9

Accessibility & contrast

On white

3.18
#8A87DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#8A87DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87DF
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87DF#FFFFFF#000000##000000
##8A87DF1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6993E2
Deuteranopia (green-blind)
#668EDD
Tritanopia (blue-blind)
#7298A8
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a87df;
/* rgb */ color: rgb(138, 135, 223);
/* oklch */ color: oklch(66.3% 0.129 283.9);
Tailwind
colors: {
  custom: {
    50: '#afaae9',
    500: '#8a87df',
    950: '#000000',
  },
}
SCSS
$custom: #8a87df;
$custom-light: #afaae9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87df",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 242.045,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.66323,
    "c": 0.12888,
    "h": 283.9
  },
  "luminance": 0.28059
}

Semantic roles & 50–950 ramp

primary
#8A87DF
secondary
#ECEDD5
accent
#C520C0
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A87DF

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

Preview Lab → · Contrast checker → · Palette generator →

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