#8A87B5#8A87B5

#8A87B5 is a light, moderate blue. Relative luminance 0.261; OKLCH L 64.3% C 0.068 H 287.3°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A87B5
RGBrgb(138, 135, 181)
HSLhsl(244, 24%, 62%)
HSVhsv(244, 25%, 71%)
CMYKcmyk(23.8%, 25.4%, 0%, 29%)
CIE-LABlab(58.10, 11.24, -23.70)
CIE-LCHlch(58.10, 26.23, 295.36°)
OKLaboklab(64.3% 0.0203 -0.0652)
OKLCHoklch(64.3% 0.068 287.3)
XYZxyz(27.4837, 26.0670, 47.2905)
Luminance0.2607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87B5 #B2B587
analogous
#879BB5 #8A87B5 #A187B5
triadic
#8A87B5 #B58A87 #87B58A
tetradic
#8A87B5 #B5879B #B2B587 #87B5A1
square
#8A87B5 #B5879B #B2B587 #87B5A1
split-complementary
#8A87B5 #B5A187 #9BB587
monochromatic
#4D4A78 #65619E #8A87B5 #AFADCC #D4D3E4

Accessibility & contrast

On white

3.38
#8A87B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#8A87B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87B5
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87B5#FFFFFF#000000##000000
##8A87B51.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B8DB7
Deuteranopia (green-blind)
#7B8AB4
Tritanopia (blue-blind)
#818F97
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #8a87b5;
/* rgb */ color: rgb(138, 135, 181);
/* oklch */ color: oklch(64.3% 0.068 287.3);
Tailwind
colors: {
  custom: {
    50: '#ada9cb',
    500: '#8a87b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a87b5;
$custom-light: #ada9cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87b5",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 181
  },
  "hsl": {
    "h": 243.913,
    "s": 23.711,
    "l": 61.961
  },
  "oklch": {
    "l": 0.64303,
    "c": 0.06832,
    "h": 287.3
  },
  "luminance": 0.26067
}

Semantic roles & 50–950 ramp

primary
#8A87B5
secondary
#D3D4C3
accent
#A2439C
background
#FAFAFC
surface
#F4F4F8
border
#CECED1
text
#101013
muted
#7F7F82

Preview Lab

Preview with #8A87B5

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

Preview Lab → · Contrast checker → · Palette generator →

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