#8A87DD#8A87DD

#8A87DD is a light, vivid blue. Relative luminance 0.280; OKLCH L 66.2% C 0.126 H 284.0°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A87DD
RGBrgb(138, 135, 221)
HSLhsl(242, 56%, 70%)
HSVhsv(242, 39%, 87%)
CMYKcmyk(37.6%, 38.9%, 0%, 13.3%)
CIE-LABlab(59.84, 21.62, -43.55)
CIE-LCHlch(59.84, 48.62, 296.40°)
OKLaboklab(66.22% 0.0305 -0.1223)
OKLCHoklch(66.22% 0.126 284)
XYZxyz(32.1927, 27.9506, 72.0914)
Luminance0.2795 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87DD #DADD87
analogous
#87AFDD #8A87DD #B587DD
triadic
#8A87DD #DD8A87 #87DD8A
tetradic
#8A87DD #DD87AF #DADD87 #87DDB5
square
#8A87DD #DD87AF #DADD87 #87DDB5
split-complementary
#8A87DD #DDB587 #AFDD87
monochromatic
#3834B6 #5C57CF #8A87DD #B8B7EB #E7E6F8

Accessibility & contrast

On white

3.19
#8A87DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#8A87DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87DD
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87DD#FFFFFF#000000##000000
##8A87DD1.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B93E0
Deuteranopia (green-blind)
#688DDB
Tritanopia (blue-blind)
#7398A7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a87dd;
/* rgb */ color: rgb(138, 135, 221);
/* oklch */ color: oklch(66.2% 0.126 284.0);
Tailwind
colors: {
  custom: {
    50: '#afaae8',
    500: '#8a87dd',
    950: '#000000',
  },
}
SCSS
$custom: #8a87dd;
$custom-light: #afaae8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87dd",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 221
  },
  "hsl": {
    "h": 242.093,
    "s": 55.844,
    "l": 69.804
  },
  "oklch": {
    "l": 0.66217,
    "c": 0.12607,
    "h": 284
  },
  "luminance": 0.27952
}

Semantic roles & 50–950 ramp

primary
#8A87DD
secondary
#EBECD4
accent
#C322BE
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A87DD

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

Preview Lab → · Contrast checker → · Palette generator →

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