#8A87F1#8A87F1

#8A87F1 is a light, vivid blue. Relative luminance 0.291; OKLCH L 67.3% C 0.154 H 282.7°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#8A87F1
RGBrgb(138, 135, 241)
HSLhsl(242, 79%, 74%)
HSVhsv(242, 44%, 95%)
CMYKcmyk(42.7%, 44%, 0%, 5.5%)
CIE-LABlab(60.85, 27.18, -53.06)
CIE-LCHlch(60.85, 59.62, 297.12°)
OKLaboklab(67.31% 0.0339 -0.1501)
OKLCHoklch(67.31% 0.154 282.7)
XYZxyz(35.0177, 29.0806, 86.9700)
Luminance0.2908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87F1 #EEF187
analogous
#87B9F1 #8A87F1 #BF87F1
triadic
#8A87F1 #F18A87 #87F18A
tetradic
#8A87F1 #F187B9 #EEF187 #87F1BF
square
#8A87F1 #F187B9 #EEF187 #87F1BF
split-complementary
#8A87F1 #F1BF87 #B9F187
monochromatic
#201AE3 #5550EB #8A87F1 #BFBEF7 #E4E4FC

Accessibility & contrast

On white

3.08
#8A87F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#8A87F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87F1
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87F1#FFFFFF#000000##000000
##8A87F11.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F96F5
Deuteranopia (green-blind)
#5A8FEF
Tritanopia (blue-blind)
#6A9DB0
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a87f1;
/* rgb */ color: rgb(138, 135, 241);
/* oklch */ color: oklch(67.3% 0.154 282.7);
Tailwind
colors: {
  custom: {
    50: '#b1aaf6',
    500: '#8a87f1',
    950: '#000000',
  },
}
SCSS
$custom: #8a87f1;
$custom-light: #b1aaf6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87f1",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 241.698,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.67314,
    "c": 0.15387,
    "h": 282.7
  },
  "luminance": 0.29082
}

Semantic roles & 50–950 ramp

primary
#8A87F1
secondary
#F3F4D7
accent
#DB0AD5
background
#FBFAFF
surface
#F6F4FE
border
#D0CED6
text
#111017
muted
#807F85

Preview Lab

Preview with #8A87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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