#8A87F0#8A87F0

#8A87F0 is a light, vivid blue. Relative luminance 0.290; OKLCH L 67.3% C 0.152 H 282.8°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#8A87F0
RGBrgb(138, 135, 240)
HSLhsl(242, 78%, 74%)
HSVhsv(242, 44%, 94%)
CMYKcmyk(42.5%, 43.8%, 0%, 5.9%)
CIE-LABlab(60.80, 26.90, -52.59)
CIE-LCHlch(60.80, 59.07, 297.09°)
OKLaboklab(67.26% 0.0338 -0.1487)
OKLCHoklch(67.26% 0.153 282.8)
XYZxyz(34.8688, 29.0210, 86.1855)
Luminance0.2902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87F0 #EDF087
analogous
#87B8F0 #8A87F0 #BE87F0
triadic
#8A87F0 #F08A87 #87F08A
tetradic
#8A87F0 #F087B8 #EDF087 #87F0BE
square
#8A87F0 #F087B8 #EDF087 #87F0BE
split-complementary
#8A87F0 #F0BE87 #B8F087
monochromatic
#221CE1 #5551E9 #8A87F0 #BFBDF7 #E4E4FC

Accessibility & contrast

On white

3.09
#8A87F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#8A87F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87F0
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87F0#FFFFFF#000000##000000
##8A87F01.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F96F4
Deuteranopia (green-blind)
#5A8FEE
Tritanopia (blue-blind)
#6A9CB0
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a87f0;
/* rgb */ color: rgb(138, 135, 240);
/* oklch */ color: oklch(67.3% 0.152 282.8);
Tailwind
colors: {
  custom: {
    50: '#b1aaf5',
    500: '#8a87f0',
    950: '#000000',
  },
}
SCSS
$custom: #8a87f0;
$custom-light: #b1aaf5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87f0",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 241.714,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.67257,
    "c": 0.1525,
    "h": 282.8
  },
  "luminance": 0.29022
}

Semantic roles & 50–950 ramp

primary
#8A87F0
secondary
#F3F3D8
accent
#DA0BD4
background
#FBFAFF
surface
#F6F4FE
border
#D0CED6
text
#111017
muted
#807F85

Preview Lab

Preview with #8A87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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