#8A87CF#8A87CF

#8A87CF is a light, moderate blue. Relative luminance 0.272; OKLCH L 65.5% C 0.106 H 285.0°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A87CF
RGBrgb(138, 135, 207)
HSLhsl(243, 43%, 67%)
HSVhsv(243, 35%, 81%)
CMYKcmyk(33.3%, 34.8%, 0%, 18.8%)
CIE-LABlab(59.19, 17.85, -36.73)
CIE-LCHlch(59.19, 40.84, 295.93°)
OKLaboklab(65.5% 0.0274 -0.1025)
OKLCHoklch(65.5% 0.106 285)
XYZxyz(30.4046, 27.2353, 62.6744)
Luminance0.2724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87CF #CCCF87
analogous
#87A8CF #8A87CF #AE87CF
triadic
#8A87CF #CF8A87 #87CF8A
tetradic
#8A87CF #CF87A8 #CCCF87 #87CFAE
square
#8A87CF #CF87A8 #CCCF87 #87CFAE
split-complementary
#8A87CF #CFAE87 #A8CF87
monochromatic
#433F9D #5F5BBE #8A87CF #B5B3E0 #DFDEF2

Accessibility & contrast

On white

3.26
#8A87CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#8A87CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87CF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87CF#FFFFFF#000000##000000
##8A87CF1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7191D2
Deuteranopia (green-blind)
#6F8CCD
Tritanopia (blue-blind)
#7894A1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a87cf;
/* rgb */ color: rgb(138, 135, 207);
/* oklch */ color: oklch(65.5% 0.106 285.0);
Tailwind
colors: {
  custom: {
    50: '#aea9de',
    500: '#8a87cf',
    950: '#000000',
  },
}
SCSS
$custom: #8a87cf;
$custom-light: #aea9de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87cf",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 207
  },
  "hsl": {
    "h": 242.5,
    "s": 42.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.65504,
    "c": 0.10615,
    "h": 285
  },
  "luminance": 0.27236
}

Semantic roles & 50–950 ramp

primary
#8A87CF
secondary
#E3E4CD
accent
#B630B0
background
#FAFAFD
surface
#F5F4FB
border
#CFCED4
text
#101015
muted
#7F7F83

Preview Lab

Preview with #8A87CF

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

Preview Lab → · Contrast checker → · Palette generator →

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