#878EFE#878EFE

#878EFE is a light, vivid blue. Relative luminance 0.317; OKLCH L 69.2% C 0.163 H 278.5°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#878EFE
RGBrgb(135, 142, 254)
HSLhsl(236, 98%, 76%)
HSVhsv(236, 47%, 100%)
CMYKcmyk(46.9%, 44.1%, 0%, 0.4%)
CIE-LABlab(63.05, 26.13, -56.72)
CIE-LCHlch(63.05, 62.45, 294.74°)
OKLaboklab(69.15% 0.0242 -0.1608)
OKLCHoklch(69.15% 0.163 278.5)
XYZxyz(37.5486, 31.6507, 97.8774)
Luminance0.3165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878EFE #FEF787
analogous
#87CAFE #878EFE #BC87FE
triadic
#878EFE #FE878E #8EFE87
tetradic
#878EFE #FE87CA #FEF787 #87FEBC
square
#878EFE #FE87CA #FEF787 #87FEBC
split-complementary
#878EFE #FEBC87 #CAFE87
monochromatic
#0E1CFD #4A55FD #878EFE #C4C7FF #E1E2FF

Accessibility & contrast

On white

2.86
#878EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#878EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #878EFE
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878EFE#FFFFFF#000000##000000
##878EFE1.002.867.337.33
#FFFFFF2.861.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#619DFF
Deuteranopia (green-blind)
#5794FB
Tritanopia (blue-blind)
#5CA6BA
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #878efe;
/* rgb */ color: rgb(135, 142, 254);
/* oklch */ color: oklch(69.2% 0.163 278.5);
Tailwind
colors: {
  custom: {
    50: '#b0afff',
    500: '#878efe',
    950: '#000000',
  },
}
SCSS
$custom: #878efe;
$custom-light: #b0afff;
$custom-dark: #000000;
JSON
{
  "hex": "#878efe",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 236.471,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.69154,
    "c": 0.16264,
    "h": 278.5
  },
  "luminance": 0.31653
}

Semantic roles & 50–950 ramp

primary
#878EFE
secondary
#F7F5D4
accent
#D800E6
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#111018
muted
#807F86

Preview Lab

Preview with #878EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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