#877AFE#877AFE

#877AFE is a light, vivid blue. Relative luminance 0.262; OKLCH L 65.5% C 0.189 H 284.3°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#877AFE
RGBrgb(135, 122, 254)
HSLhsl(246, 99%, 74%)
HSVhsv(246, 52%, 100%)
CMYKcmyk(46.9%, 52%, 0%, 0.4%)
CIE-LABlab(58.25, 37.78, -64.41)
CIE-LCHlch(58.25, 74.67, 300.39°)
OKLaboklab(65.53% 0.0469 -0.1835)
OKLCHoklch(65.53% 0.189 284.3)
XYZxyz(34.8353, 26.2241, 96.9730)
Luminance0.2623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877AFE #F1FE7A
analogous
#7AAFFE #877AFE #C97AFE
triadic
#877AFE #FE877A #7AFE87
tetradic
#877AFE #FE7AAF #F1FE7A #7AFEC9
square
#877AFE #FE7AAF #F1FE7A #7AFEC9
split-complementary
#877AFE #FEC97A #AFFE7A
monochromatic
#1A02FC #503DFE #877AFE #BEB7FE #E4E1FF

Accessibility & contrast

On white

3.36
#877AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#877AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877AFE
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877AFE#FFFFFF#000000##000000
##877AFE1.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3790FF
Deuteranopia (green-blind)
#3188FB
Tritanopia (blue-blind)
#5E97B0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #877afe;
/* rgb */ color: rgb(135, 122, 254);
/* oklch */ color: oklch(65.5% 0.189 284.3);
Tailwind
colors: {
  custom: {
    50: '#b1a0ff',
    500: '#877afe',
    950: '#000000',
  },
}
SCSS
$custom: #877afe;
$custom-light: #b1a0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#877afe",
  "rgb": {
    "r": 135,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 245.909,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.65534,
    "c": 0.18942,
    "h": 284.3
  },
  "luminance": 0.26226
}

Semantic roles & 50–950 ramp

primary
#877AFE
secondary
#F4F7D4
accent
#E600CF
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110F18
muted
#807E86

Preview Lab

Preview with #877AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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