#8A87FA#8A87FA

#8A87FA is a light, vivid blue. Relative luminance 0.296; OKLCH L 67.8% C 0.166 H 282.2°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8A87FA
RGBrgb(138, 135, 250)
HSLhsl(242, 92%, 75%)
HSVhsv(242, 46%, 98%)
CMYKcmyk(44.8%, 46%, 0%, 2%)
CIE-LABlab(61.34, 29.74, -57.25)
CIE-LCHlch(61.34, 64.52, 297.45°)
OKLaboklab(67.84% 0.0351 -0.1624)
OKLCHoklch(67.84% 0.166 282.2)
XYZxyz(36.3954, 29.6317, 94.2257)
Luminance0.2963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87FA #F7FA87
analogous
#87BDFA #8A87FA #C387FA
triadic
#8A87FA #FA8A87 #87FA8A
tetradic
#8A87FA #FA87BD #F7FA87 #87FAC3
square
#8A87FA #FA87BD #F7FA87 #87FAC3
split-complementary
#8A87FA #FAC387 #BDFA87
monochromatic
#1711F5 #514CF8 #8A87FA #C3C2FC #E2E2FE

Accessibility & contrast

On white

3.03
#8A87FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#8A87FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87FA
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87FA#FFFFFF#000000##000000
##8A87FA1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5898FE
Deuteranopia (green-blind)
#5290F7
Tritanopia (blue-blind)
#659FB4
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8a87fa;
/* rgb */ color: rgb(138, 135, 250);
/* oklch */ color: oklch(67.8% 0.166 282.2);
Tailwind
colors: {
  custom: {
    50: '#b2aafc',
    500: '#8a87fa',
    950: '#000000',
  },
}
SCSS
$custom: #8a87fa;
$custom-light: #b2aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87fa",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 241.565,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.67836,
    "c": 0.16612,
    "h": 282.2
  },
  "luminance": 0.29633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A87FA

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

Preview Lab → · Contrast checker → · Palette generator →

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