#8A87DB#8A87DB

#8A87DB is a light, vivid blue. Relative luminance 0.278; OKLCH L 66.1% C 0.123 H 284.1°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8A87DB
RGBrgb(138, 135, 219)
HSLhsl(242, 54%, 69%)
HSVhsv(242, 38%, 86%)
CMYKcmyk(37%, 38.4%, 0%, 14.1%)
CIE-LABlab(59.75, 21.07, -42.58)
CIE-LCHlch(59.75, 47.51, 296.33°)
OKLaboklab(66.11% 0.0301 -0.1195)
OKLCHoklch(66.11% 0.123 284.1)
XYZxyz(31.9278, 27.8446, 70.6964)
Luminance0.2785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87DB #D8DB87
analogous
#87AEDB #8A87DB #B487DB
triadic
#8A87DB #DB8A87 #87DB8A
tetradic
#8A87DB #DB87AE #D8DB87 #87DBB4
square
#8A87DB #DB87AE #D8DB87 #87DBB4
split-complementary
#8A87DB #DBB487 #AEDB87
monochromatic
#3A35B2 #5C58CD #8A87DB #B8B6E9 #E6E5F7

Accessibility & contrast

On white

3.20
#8A87DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#8A87DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87DB
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87DB#FFFFFF#000000##000000
##8A87DB1.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C93DE
Deuteranopia (green-blind)
#698DD9
Tritanopia (blue-blind)
#7497A7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8a87db;
/* rgb */ color: rgb(138, 135, 219);
/* oklch */ color: oklch(66.1% 0.123 284.1);
Tailwind
colors: {
  custom: {
    50: '#afaae6',
    500: '#8a87db',
    950: '#000000',
  },
}
SCSS
$custom: #8a87db;
$custom-light: #afaae6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87db",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 242.143,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.66113,
    "c": 0.12324,
    "h": 284.1
  },
  "luminance": 0.27846
}

Semantic roles & 50–950 ramp

primary
#8A87DB
secondary
#EAEBD3
accent
#C124BC
background
#FBFAFE
surface
#F6F4FC
border
#D0CED5
text
#111016
muted
#807F84

Preview Lab

Preview with #8A87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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