#878EFD#878EFD

#878EFD is a light, vivid blue. Relative luminance 0.316; OKLCH L 69.1% C 0.161 H 278.6°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#878EFD
RGBrgb(135, 142, 253)
HSLhsl(236, 97%, 76%)
HSVhsv(236, 47%, 99%)
CMYKcmyk(46.6%, 43.9%, 0%, 0.8%)
CIE-LABlab(63.00, 25.84, -56.26)
CIE-LCHlch(63.00, 61.91, 294.67°)
OKLaboklab(69.1% 0.024 -0.1595)
OKLCHoklch(69.1% 0.161 278.6)
XYZxyz(37.3889, 31.5868, 97.0362)
Luminance0.3159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#878EFD #FDF687
analogous
#87C9FD #878EFD #BB87FD
triadic
#878EFD #FD878E #8EFD87
tetradic
#878EFD #FD87C9 #FDF687 #87FDBB
square
#878EFD #FD87C9 #FDF687 #87FDBB
split-complementary
#878EFD #FDBB87 #C9FD87
monochromatic
#0F1DFB #4B55FC #878EFD #C3C7FE #E1E3FE

Accessibility & contrast

On white

2.87
#878EFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#878EFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #878EFD
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##878EFD#FFFFFF#000000##000000
##878EFD1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#619DFF
Deuteranopia (green-blind)
#5894FB
Tritanopia (blue-blind)
#5CA5B9
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #878efd;
/* rgb */ color: rgb(135, 142, 253);
/* oklch */ color: oklch(69.1% 0.161 278.6);
Tailwind
colors: {
  custom: {
    50: '#b0affe',
    500: '#878efd',
    950: '#000000',
  },
}
SCSS
$custom: #878efd;
$custom-light: #b0affe;
$custom-dark: #000000;
JSON
{
  "hex": "#878efd",
  "rgb": {
    "r": 135,
    "g": 142,
    "b": 253
  },
  "hsl": {
    "h": 236.441,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.69096,
    "c": 0.16128,
    "h": 278.6
  },
  "luminance": 0.31589
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #878EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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