#8A87F2#8A87F2

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

Color values

HEX#8A87F2
RGBrgb(138, 135, 242)
HSLhsl(242, 80%, 74%)
HSVhsv(242, 44%, 95%)
CMYKcmyk(43%, 44.2%, 0%, 5.1%)
CIE-LABlab(60.91, 27.46, -53.53)
CIE-LCHlch(60.91, 60.16, 297.16°)
OKLaboklab(67.37% 0.034 -0.1515)
OKLCHoklch(67.37% 0.155 282.7)
XYZxyz(35.1675, 29.1405, 87.7589)
Luminance0.2914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A87F2 #EFF287
analogous
#87BAF2 #8A87F2 #C087F2
triadic
#8A87F2 #F28A87 #87F28A
tetradic
#8A87F2 #F287BA #EFF287 #87F2C0
square
#8A87F2 #F287BA #EFF287 #87F2C0
split-complementary
#8A87F2 #F2C087 #BAF287
monochromatic
#1F19E6 #5450EC #8A87F2 #C0BEF8 #E4E3FC

Accessibility & contrast

On white

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

On black

6.83
#8A87F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A87F2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A87F2#FFFFFF#000000##000000
##8A87F21.003.086.836.83
#FFFFFF3.081.0021.0021.00
#0000006.8321.001.001.00
##0000006.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E97F6
Deuteranopia (green-blind)
#598FF0
Tritanopia (blue-blind)
#699DB1
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #8a87f2;
/* rgb */ color: rgb(138, 135, 242);
/* oklch */ color: oklch(67.4% 0.155 282.7);
Tailwind
colors: {
  custom: {
    50: '#b1aaf7',
    500: '#8a87f2',
    950: '#000000',
  },
}
SCSS
$custom: #8a87f2;
$custom-light: #b1aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a87f2",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 241.682,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.67371,
    "c": 0.15524,
    "h": 282.7
  },
  "luminance": 0.29142
}

Semantic roles & 50–950 ramp

primary
#8A87F2
secondary
#F3F4D7
accent
#DD09D7
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111017
muted
#807F85

Preview Lab

Preview with #8A87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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