#878DF7#878DF7

#878DF7 is a light, vivid blue. Relative luminance 0.309; OKLCH L 68.6% C 0.154 H 279.0°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#878DF7
RGBrgb(135, 141, 247)
HSLhsl(237, 88%, 75%)
HSVhsv(237, 45%, 97%)
CMYKcmyk(45.3%, 42.9%, 0%, 3.1%)
CIE-LABlab(62.44, 24.68, -53.87)
CIE-LCHlch(62.44, 59.25, 294.62°)
OKLaboklab(68.56% 0.0243 -0.1525)
OKLCHoklch(68.56% 0.154 279)
XYZxyz(36.3000, 30.9142, 92.0320)
Luminance0.3092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878DF7 #F7F187
analogous
#87C5F7 #878DF7 #B987F7
triadic
#878DF7 #F7878D #8DF787
tetradic
#878DF7 #F787C5 #F7F187 #87F7B9
square
#878DF7 #F787C5 #F7F187 #87F7B9
split-complementary
#878DF7 #F7B987 #C5F787
monochromatic
#1420EF #4E56F3 #878DF7 #C0C4FB #E2E4FD

Accessibility & contrast

On white

2.92
#878DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#878DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #878DF7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878DF7#FFFFFF#000000##000000
##878DF71.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#649BFB
Deuteranopia (green-blind)
#5C93F5
Tritanopia (blue-blind)
#60A3B6
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #878df7;
/* rgb */ color: rgb(135, 141, 247);
/* oklch */ color: oklch(68.6% 0.154 279.0);
Tailwind
colors: {
  custom: {
    50: '#afaefa',
    500: '#878df7',
    950: '#000000',
  },
}
SCSS
$custom: #878df7;
$custom-light: #afaefa;
$custom-dark: #000000;
JSON
{
  "hex": "#878df7",
  "rgb": {
    "r": 135,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 236.786,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.68564,
    "c": 0.1544,
    "h": 279
  },
  "luminance": 0.30916
}

Semantic roles & 50–950 ramp

primary
#878DF7
secondary
#F5F3D6
accent
#D801E4
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111017
muted
#807F85

Preview Lab

Preview with #878DF7

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

Preview Lab → · Contrast checker → · Palette generator →

#878DF7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva