#8A87FE#8A87FE

#8A87FE is a light, vivid blue. Relative luminance 0.299; OKLCH L 68.1% C 0.172 H 282.0°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8A87FE
RGBrgb(138, 135, 254)
HSLhsl(242, 98%, 76%)
HSVhsv(242, 47%, 100%)
CMYKcmyk(45.7%, 46.9%, 0%, 0.4%)
CIE-LABlab(61.55, 30.89, -59.10)
CIE-LCHlch(61.55, 66.68, 297.60°)
OKLaboklab(68.07% 0.0356 -0.1678)
OKLCHoklch(68.07% 0.172 282)
XYZxyz(37.0293, 29.8852, 97.5640)
Luminance0.2989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87FE #FBFE87
analogous
#87C0FE #8A87FE #C687FE
triadic
#8A87FE #FE8A87 #87FE8A
tetradic
#8A87FE #FE87C0 #FBFE87 #87FEC6
square
#8A87FE #FE87C0 #FBFE87 #87FEC6
split-complementary
#8A87FE #FEC687 #C0FE87
monochromatic
#140EFD #4F4AFD #8A87FE #C5C4FF #E1E1FF

Accessibility & contrast

On white

3.01
#8A87FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#8A87FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87FE
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87FE#FFFFFF#000000##000000
##8A87FE1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5599FF
Deuteranopia (green-blind)
#4E91FB
Tritanopia (blue-blind)
#62A0B6
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #8a87fe;
/* rgb */ color: rgb(138, 135, 254);
/* oklch */ color: oklch(68.1% 0.172 282.0);
Tailwind
colors: {
  custom: {
    50: '#b2aaff',
    500: '#8a87fe',
    950: '#000000',
  },
}
SCSS
$custom: #8a87fe;
$custom-light: #b2aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87fe",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 241.513,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.68073,
    "c": 0.17151,
    "h": 282
  },
  "luminance": 0.29887
}

Semantic roles & 50–950 ramp

primary
#8A87FE
secondary
#F6F7D4
accent
#E600E0
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111018
muted
#807F86

Preview Lab

Preview with #8A87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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