#8A87CC#8A87CC

#8A87CC is a light, moderate blue. Relative luminance 0.271; OKLCH L 65.4% C 0.102 H 285.2°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A87CC
RGBrgb(138, 135, 204)
HSLhsl(243, 40%, 66%)
HSVhsv(243, 34%, 80%)
CMYKcmyk(32.4%, 33.8%, 0%, 20%)
CIE-LABlab(59.06, 17.07, -35.25)
CIE-LCHlch(59.06, 39.16, 295.83°)
OKLaboklab(65.36% 0.0267 -0.0983)
OKLCHoklch(65.36% 0.102 285.2)
XYZxyz(30.0414, 27.0900, 60.7611)
Luminance0.2709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87CC #C9CC87
analogous
#87A7CC #8A87CC #AD87CC
triadic
#8A87CC #CC8A87 #87CC8A
tetradic
#8A87CC #CC87A7 #C9CC87 #87CCAD
square
#8A87CC #CC87A7 #C9CC87 #87CCAD
split-complementary
#8A87CC #CCAD87 #A7CC87
monochromatic
#444198 #605CBA #8A87CC #B4B2DE #DEDDF1

Accessibility & contrast

On white

3.27
#8A87CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#8A87CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87CC
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87CC#FFFFFF#000000##000000
##8A87CC1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7390CF
Deuteranopia (green-blind)
#718CCA
Tritanopia (blue-blind)
#7994A0
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a87cc;
/* rgb */ color: rgb(138, 135, 204);
/* oklch */ color: oklch(65.4% 0.102 285.2);
Tailwind
colors: {
  custom: {
    50: '#aea9dc',
    500: '#8a87cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a87cc;
$custom-light: #aea9dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87cc",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 242.609,
    "s": 40.351,
    "l": 66.471
  },
  "oklch": {
    "l": 0.65357,
    "c": 0.10184,
    "h": 285.2
  },
  "luminance": 0.27091
}

Semantic roles & 50–950 ramp

primary
#8A87CC
secondary
#E2E3CC
accent
#B332AE
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#101015
muted
#7F7F83

Preview Lab

Preview with #8A87CC

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

Preview Lab → · Contrast checker → · Palette generator →

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