#8A87FB#8A87FB

#8A87FB is a light, vivid blue. Relative luminance 0.297; OKLCH L 67.9% C 0.167 H 282.1°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#8A87FB
RGBrgb(138, 135, 251)
HSLhsl(242, 94%, 76%)
HSVhsv(242, 46%, 98%)
CMYKcmyk(45%, 46.2%, 0%, 1.6%)
CIE-LABlab(61.39, 30.03, -57.72)
CIE-LCHlch(61.39, 65.06, 297.49°)
OKLaboklab(67.9% 0.0352 -0.1637)
OKLCHoklch(67.9% 0.167 282.1)
XYZxyz(36.5526, 29.6945, 95.0537)
Luminance0.2970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87FB #F8FB87
analogous
#87BEFB #8A87FB #C487FB
triadic
#8A87FB #FB8A87 #87FB8A
tetradic
#8A87FB #FB87BE #F8FB87 #87FBC4
square
#8A87FB #FB87BE #F8FB87 #87FBC4
split-complementary
#8A87FB #FBC487 #BEFB87
monochromatic
#1711F7 #504CF9 #8A87FB #C4C2FD #E2E1FE

Accessibility & contrast

On white

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

On black

6.94
#8A87FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87FB
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87FB#FFFFFF#000000##000000
##8A87FB1.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5798FF
Deuteranopia (green-blind)
#5190F8
Tritanopia (blue-blind)
#649FB5
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #8a87fb;
/* rgb */ color: rgb(138, 135, 251);
/* oklch */ color: oklch(67.9% 0.167 282.1);
Tailwind
colors: {
  custom: {
    50: '#b2aafd',
    500: '#8a87fb',
    950: '#000000',
  },
}
SCSS
$custom: #8a87fb;
$custom-light: #b2aafd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87fb",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 241.552,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.67895,
    "c": 0.16747,
    "h": 282.1
  },
  "luminance": 0.29696
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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