#8A87F8#8A87F8

#8A87F8 is a light, vivid blue. Relative luminance 0.295; OKLCH L 67.7% C 0.163 H 282.3°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8A87F8
RGBrgb(138, 135, 248)
HSLhsl(242, 89%, 75%)
HSVhsv(242, 46%, 97%)
CMYKcmyk(44.4%, 45.6%, 0%, 2.7%)
CIE-LABlab(61.23, 29.17, -56.33)
CIE-LCHlch(61.23, 63.43, 297.38°)
OKLaboklab(67.72% 0.0349 -0.1596)
OKLCHoklch(67.72% 0.163 282.3)
XYZxyz(36.0835, 29.5069, 92.5829)
Luminance0.2951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87F8 #F5F887
analogous
#87BCF8 #8A87F8 #C387F8
triadic
#8A87F8 #F88A87 #87F88A
tetradic
#8A87F8 #F887BC #F5F887 #87F8C3
square
#8A87F8 #F887BC #F5F887 #87F8C3
split-complementary
#8A87F8 #F8C387 #BCF887
monochromatic
#1913F1 #524DF5 #8A87F8 #C2C1FB #E3E2FD

Accessibility & contrast

On white

3.04
#8A87F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#8A87F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87F8
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87F8#FFFFFF#000000##000000
##8A87F81.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A98FC
Deuteranopia (green-blind)
#5490F5
Tritanopia (blue-blind)
#669EB4
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8a87f8;
/* rgb */ color: rgb(138, 135, 248);
/* oklch */ color: oklch(67.7% 0.163 282.3);
Tailwind
colors: {
  custom: {
    50: '#b1aafb',
    500: '#8a87f8',
    950: '#000000',
  },
}
SCSS
$custom: #8a87f8;
$custom-light: #b1aafb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87f8",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 241.593,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.67718,
    "c": 0.16341,
    "h": 282.3
  },
  "luminance": 0.29509
}

Semantic roles & 50–950 ramp

primary
#8A87F8
secondary
#F5F5D6
accent
#E600DF
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111017
muted
#807F85

Preview Lab

Preview with #8A87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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