#8A87D2#8A87D2

#8A87D2 is a light, moderate blue. Relative luminance 0.274; OKLCH L 65.7% C 0.110 H 284.7°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8A87D2
RGBrgb(138, 135, 210)
HSLhsl(242, 45%, 68%)
HSVhsv(242, 36%, 82%)
CMYKcmyk(34.3%, 35.7%, 0%, 17.6%)
CIE-LABlab(59.33, 18.65, -38.20)
CIE-LCHlch(59.33, 42.51, 296.02°)
OKLaboklab(65.65% 0.0281 -0.1068)
OKLCHoklch(65.65% 0.11 284.7)
XYZxyz(30.7749, 27.3834, 64.6243)
Luminance0.2738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87D2 #CFD287
analogous
#87A9D2 #8A87D2 #AF87D2
triadic
#8A87D2 #D28A87 #87D28A
tetradic
#8A87D2 #D287A9 #CFD287 #87D2AF
square
#8A87D2 #D287A9 #CFD287 #87D2AF
split-complementary
#8A87D2 #D2AF87 #A9D287
monochromatic
#413DA2 #5F5AC1 #8A87D2 #B5B4E3 #E1E0F3

Accessibility & contrast

On white

3.24
#8A87D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#8A87D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87D2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87D2#FFFFFF#000000##000000
##8A87D21.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7091D5
Deuteranopia (green-blind)
#6E8DD0
Tritanopia (blue-blind)
#7795A3
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #8a87d2;
/* rgb */ color: rgb(138, 135, 210);
/* oklch */ color: oklch(65.7% 0.110 284.7);
Tailwind
colors: {
  custom: {
    50: '#aeaae0',
    500: '#8a87d2',
    950: '#000000',
  },
}
SCSS
$custom: #8a87d2;
$custom-light: #aeaae0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87d2",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 210
  },
  "hsl": {
    "h": 242.4,
    "s": 45.455,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65653,
    "c": 0.11045,
    "h": 284.7
  },
  "luminance": 0.27384
}

Semantic roles & 50–950 ramp

primary
#8A87D2
secondary
#E5E6CF
accent
#B92DB3
background
#FAFAFD
surface
#F5F4FB
border
#CFCED4
text
#101015
muted
#7F7F83

Preview Lab

Preview with #8A87D2

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

Preview Lab → · Contrast checker → · Palette generator →

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