#877CEF#877CEF

#877CEF is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.9% C 0.167 H 285.1°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#877CEF
RGBrgb(135, 124, 239)
HSLhsl(246, 78%, 71%)
HSVhsv(246, 48%, 94%)
CMYKcmyk(43.5%, 48.1%, 0%, 6.3%)
CIE-LABlab(57.84, 32.33, -56.76)
CIE-LCHlch(57.84, 65.32, 299.66°)
OKLaboklab(64.95% 0.0435 -0.1611)
OKLCHoklch(64.95% 0.167 285.1)
XYZxyz(32.7748, 25.7968, 84.8970)
Luminance0.2580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877CEF #E4EF7C
analogous
#7CAAEF #877CEF #C07CEF
triadic
#877CEF #EF877C #7CEF87
tetradic
#877CEF #EF7CAA #E4EF7C #7CEFC0
square
#877CEF #EF7CAA #E4EF7C #7CEFC0
split-complementary
#877CEF #EFC07C #AAEF7C
monochromatic
#2C1AD6 #5545E8 #877CEF #B9B3F6 #E6E4FC

Accessibility & contrast

On white

3.41
#877CEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#877CEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877CEF
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877CEF#FFFFFF#000000##000000
##877CEF1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8EF3
Deuteranopia (green-blind)
#4888EC
Tritanopia (blue-blind)
#6794AA
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #877cef;
/* rgb */ color: rgb(135, 124, 239);
/* oklch */ color: oklch(64.9% 0.167 285.1);
Tailwind
colors: {
  custom: {
    50: '#afa2f5',
    500: '#877cef',
    950: '#000000',
  },
}
SCSS
$custom: #877cef;
$custom-light: #afa2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#877cef",
  "rgb": {
    "r": 135,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 245.739,
    "s": 78.231,
    "l": 71.176
  },
  "oklch": {
    "l": 0.64948,
    "c": 0.16682,
    "h": 285.1
  },
  "luminance": 0.25798
}

Semantic roles & 50–950 ramp

primary
#877CEF
secondary
#F0F3D4
accent
#DA0BC7
background
#FBF9FF
surface
#F6F2FE
border
#D0CCD6
text
#110F17
muted
#807E85

Preview Lab

Preview with #877CEF

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

Preview Lab → · Contrast checker → · Palette generator →

#877CEF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva