#878EF8#878EF8

#878EF8 is a light, vivid blue. Relative luminance 0.313; OKLCH L 68.8% C 0.154 H 278.7°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#878EF8
RGBrgb(135, 142, 248)
HSLhsl(236, 89%, 75%)
HSVhsv(236, 46%, 97%)
CMYKcmyk(45.6%, 42.7%, 0%, 2.7%)
CIE-LABlab(62.74, 24.39, -53.94)
CIE-LCHlch(62.74, 59.19, 294.33°)
OKLaboklab(68.81% 0.0233 -0.1527)
OKLCHoklch(68.81% 0.154 278.7)
XYZxyz(36.6028, 31.2723, 92.8962)
Luminance0.3127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878EF8 #F8F187
analogous
#87C7F8 #878EF8 #B887F8
triadic
#878EF8 #F8878E #8EF887
tetradic
#878EF8 #F887C7 #F8F187 #87F8B8
square
#878EF8 #F887C7 #F8F187 #87F8B8
split-complementary
#878EF8 #F8B887 #C7F887
monochromatic
#1321F1 #4D58F5 #878EF8 #C1C4FB #E2E4FD

Accessibility & contrast

On white

2.89
#878EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#878EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #878EF8
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878EF8#FFFFFF#000000##000000
##878EF81.002.897.257.25
#FFFFFF2.891.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#659CFC
Deuteranopia (green-blind)
#5C94F6
Tritanopia (blue-blind)
#5FA4B7
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #878ef8;
/* rgb */ color: rgb(135, 142, 248);
/* oklch */ color: oklch(68.8% 0.154 278.7);
Tailwind
colors: {
  custom: {
    50: '#afaefb',
    500: '#878ef8',
    950: '#000000',
  },
}
SCSS
$custom: #878ef8;
$custom-light: #afaefb;
$custom-dark: #000000;
JSON
{
  "hex": "#878ef8",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 248
  },
  "hsl": {
    "h": 236.283,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.6881,
    "c": 0.15444,
    "h": 278.7
  },
  "luminance": 0.31274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #878EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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