#8A87CB#8A87CB

#8A87CB is a light, moderate blue. Relative luminance 0.270; OKLCH L 65.3% C 0.100 H 285.3°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8A87CB
RGBrgb(138, 135, 203)
HSLhsl(243, 40%, 66%)
HSVhsv(243, 33%, 80%)
CMYKcmyk(32%, 33.5%, 0%, 20.4%)
CIE-LABlab(59.01, 16.80, -34.75)
CIE-LCHlch(59.01, 38.60, 295.80°)
OKLaboklab(65.31% 0.0265 -0.0968)
OKLCHoklch(65.31% 0.1 285.3)
XYZxyz(29.9218, 27.0422, 60.1315)
Luminance0.2704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87CB #C8CB87
analogous
#87A6CB #8A87CB #AC87CB
triadic
#8A87CB #CB8A87 #87CB8A
tetradic
#8A87CB #CB87A6 #C8CB87 #87CBAC
square
#8A87CB #CB87A6 #C8CB87 #87CBAC
split-complementary
#8A87CB #CBAC87 #A6CB87
monochromatic
#454196 #605CB8 #8A87CB #B4B2DE #DDDCF0

Accessibility & contrast

On white

3.28
#8A87CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#8A87CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87CB
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87CB#FFFFFF#000000##000000
##8A87CB1.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7390CE
Deuteranopia (green-blind)
#718CC9
Tritanopia (blue-blind)
#7A93A0
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a87cb;
/* rgb */ color: rgb(138, 135, 203);
/* oklch */ color: oklch(65.3% 0.100 285.3);
Tailwind
colors: {
  custom: {
    50: '#aea9db',
    500: '#8a87cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a87cb;
$custom-light: #aea9db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87cb",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 242.647,
    "s": 39.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.65308,
    "c": 0.1004,
    "h": 285.3
  },
  "luminance": 0.27043
}

Semantic roles & 50–950 ramp

primary
#8A87CB
secondary
#E1E2CC
accent
#B333AD
background
#FAFAFD
surface
#F4F4FB
border
#CECED4
text
#101015
muted
#7F7F83

Preview Lab

Preview with #8A87CB

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

Preview Lab → · Contrast checker → · Palette generator →

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