#8A87FC#8A87FC

#8A87FC is a light, vivid blue. Relative luminance 0.298; OKLCH L 68.0% C 0.169 H 282.1°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#8A87FC
RGBrgb(138, 135, 252)
HSLhsl(242, 95%, 76%)
HSVhsv(242, 46%, 99%)
CMYKcmyk(45.2%, 46.4%, 0%, 1.2%)
CIE-LABlab(61.44, 30.32, -58.18)
CIE-LCHlch(61.44, 65.60, 297.52°)
OKLaboklab(67.95% 0.0353 -0.1651)
OKLCHoklch(67.95% 0.169 282.1)
XYZxyz(36.7107, 29.7578, 95.8861)
Luminance0.2976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87FC #F9FC87
analogous
#87BEFC #8A87FC #C487FC
triadic
#8A87FC #FC8A87 #87FC8A
tetradic
#8A87FC #FC87BE #F9FC87 #87FCC4
square
#8A87FC #FC87BE #F9FC87 #87FCC4
split-complementary
#8A87FC #FCC487 #BEFC87
monochromatic
#1610F9 #504BFB #8A87FC #C4C3FD #E2E1FE

Accessibility & contrast

On white

3.02
#8A87FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#8A87FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87FC
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87FC#FFFFFF#000000##000000
##8A87FC1.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5798FF
Deuteranopia (green-blind)
#5090F9
Tritanopia (blue-blind)
#64A0B5
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8a87fc;
/* rgb */ color: rgb(138, 135, 252);
/* oklch */ color: oklch(68.0% 0.169 282.1);
Tailwind
colors: {
  custom: {
    50: '#b2aafe',
    500: '#8a87fc',
    950: '#000000',
  },
}
SCSS
$custom: #8a87fc;
$custom-light: #b2aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87fc",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 241.538,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.67954,
    "c": 0.16882,
    "h": 282.1
  },
  "luminance": 0.29759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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