#8A87FD#8A87FD

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

Color values

HEX#8A87FD
RGBrgb(138, 135, 253)
HSLhsl(242, 97%, 76%)
HSVhsv(242, 47%, 99%)
CMYKcmyk(45.5%, 46.6%, 0%, 0.8%)
CIE-LABlab(61.50, 30.60, -58.64)
CIE-LCHlch(61.50, 66.14, 297.56°)
OKLaboklab(68.01% 0.0355 -0.1664)
OKLCHoklch(68.01% 0.17 282)
XYZxyz(36.8695, 29.8213, 96.7228)
Luminance0.2982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87FD #FAFD87
analogous
#87BFFD #8A87FD #C587FD
triadic
#8A87FD #FD8A87 #87FD8A
tetradic
#8A87FD #FD87BF #FAFD87 #87FDC5
square
#8A87FD #FD87BF #FAFD87 #87FDC5
split-complementary
#8A87FD #FDC587 #BFFD87
monochromatic
#150FFB #4F4BFC #8A87FD #C5C3FE #E2E1FE

Accessibility & contrast

On white

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

On black

6.96
#8A87FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87FD
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87FD#FFFFFF#000000##000000
##8A87FD1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5699FF
Deuteranopia (green-blind)
#4F90FA
Tritanopia (blue-blind)
#63A0B6
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8a87fd;
/* rgb */ color: rgb(138, 135, 253);
/* oklch */ color: oklch(68.0% 0.170 282.0);
Tailwind
colors: {
  custom: {
    50: '#b2aaff',
    500: '#8a87fd',
    950: '#000000',
  },
}
SCSS
$custom: #8a87fd;
$custom-light: #b2aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87fd",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 241.525,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.68013,
    "c": 0.17017,
    "h": 282
  },
  "luminance": 0.29823
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A87FD

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

Preview Lab → · Contrast checker → · Palette generator →

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