#8A87CA#8A87CA

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

Color values

HEX#8A87CA
RGBrgb(138, 135, 202)
HSLhsl(243, 39%, 66%)
HSVhsv(243, 33%, 79%)
CMYKcmyk(31.7%, 33.2%, 0%, 20.8%)
CIE-LABlab(58.97, 16.54, -34.26)
CIE-LCHlch(58.97, 38.04, 295.77°)
OKLaboklab(65.26% 0.0262 -0.0954)
OKLCHoklch(65.26% 0.099 285.4)
XYZxyz(29.8030, 26.9947, 59.5059)
Luminance0.2700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87CA #C7CA87
analogous
#87A5CA #8A87CA #AB87CA
triadic
#8A87CA #CA8A87 #87CA8A
tetradic
#8A87CA #CA87A5 #C7CA87 #87CAAB
square
#8A87CA #CA87A5 #C7CA87 #87CAAB
split-complementary
#8A87CA #CAAB87 #A5CA87
monochromatic
#454295 #615DB7 #8A87CA #B3B1DD #DDDCEF

Accessibility & contrast

On white

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

On black

6.40
#8A87CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87CA
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87CA#FFFFFF#000000##000000
##8A87CA1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7390CD
Deuteranopia (green-blind)
#728CC8
Tritanopia (blue-blind)
#7A939F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #8a87ca;
/* rgb */ color: rgb(138, 135, 202);
/* oklch */ color: oklch(65.3% 0.099 285.4);
Tailwind
colors: {
  custom: {
    50: '#aea9da',
    500: '#8a87ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a87ca;
$custom-light: #aea9da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87ca",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 242.687,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6526,
    "c": 0.09895,
    "h": 285.4
  },
  "luminance": 0.26995
}

Semantic roles & 50–950 ramp

primary
#8A87CA
secondary
#E0E1CB
accent
#B234AC
background
#FAFAFD
surface
#F4F4FA
border
#CECED3
text
#101015
muted
#7F7F83

Preview Lab

Preview with #8A87CA

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

Preview Lab → · Contrast checker → · Palette generator →

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