#8A87BB#8A87BB

#8A87BB is a light, moderate blue. Relative luminance 0.263; OKLCH L 64.6% C 0.077 H 286.7°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8A87BB
RGBrgb(138, 135, 187)
HSLhsl(243, 28%, 63%)
HSVhsv(243, 28%, 73%)
CMYKcmyk(26.2%, 27.8%, 0%, 26.7%)
CIE-LABlab(58.34, 12.71, -26.75)
CIE-LCHlch(58.34, 29.62, 295.42°)
OKLaboklab(64.57% 0.0221 -0.0739)
OKLCHoklch(64.57% 0.077 286.7)
XYZxyz(28.1126, 26.3185, 50.6029)
Luminance0.2632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87BB #B8BB87
analogous
#879EBB #8A87BB #A487BB
triadic
#8A87BB #BB8A87 #87BB8A
tetradic
#8A87BB #BB879E #B8BB87 #87BBA4
square
#8A87BB #BB879E #B8BB87 #87BBA4
split-complementary
#8A87BB #BBA487 #9EBB87
monochromatic
#4B487F #6460A5 #8A87BB #B0AED1 #D6D5E7

Accessibility & contrast

On white

3.35
#8A87BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#8A87BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87BB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87BB#FFFFFF#000000##000000
##8A87BB1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#798EBD
Deuteranopia (green-blind)
#788BBA
Tritanopia (blue-blind)
#7F9099
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a87bb;
/* rgb */ color: rgb(138, 135, 187);
/* oklch */ color: oklch(64.6% 0.077 286.7);
Tailwind
colors: {
  custom: {
    50: '#ada9cf',
    500: '#8a87bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a87bb;
$custom-light: #ada9cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87bb",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 187
  },
  "hsl": {
    "h": 243.462,
    "s": 27.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.64565,
    "c": 0.07713,
    "h": 286.7
  },
  "luminance": 0.26319
}

Semantic roles & 50–950 ramp

primary
#8A87BB
secondary
#D7D8C6
accent
#A63FA0
background
#FAFAFC
surface
#F4F4F9
border
#CECED2
text
#101014
muted
#7F7F82

Preview Lab

Preview with #8A87BB

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

Preview Lab → · Contrast checker → · Palette generator →

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