#7871E8#7871E8

#7871E8 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 61.4% C 0.174 H 282.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7871E8
RGBrgb(120, 113, 232)
HSLhsl(244, 72%, 68%)
HSVhsv(244, 51%, 91%)
CMYKcmyk(48.3%, 51.3%, 0%, 9%)
CIE-LABlab(53.63, 33.40, -59.68)
CIE-LCHlch(53.63, 68.39, 299.24°)
OKLaboklab(61.36% 0.0381 -0.17)
OKLCHoklch(61.36% 0.174 282.6)
XYZxyz(28.2120, 21.6281, 79.0164)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871E8 #E1E871
analogous
#71A6E8 #7871E8 #B371E8
triadic
#7871E8 #E87871 #71E878
tetradic
#7871E8 #E871A6 #E1E871 #71E8B3
square
#7871E8 #E871A6 #E1E871 #71E8B3
split-complementary
#7871E8 #E8B371 #A6E871
monochromatic
#281FC0 #463CDF #7871E8 #AAA6F1 #DCDAF9

Accessibility & contrast

On white

3.94
#7871E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#7871E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871E8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871E8#FFFFFF#000000##000000
##7871E81.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3684EC
Deuteranopia (green-blind)
#2E7CE5
Tritanopia (blue-blind)
#4F8BA2
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7871e8;
/* rgb */ color: rgb(120, 113, 232);
/* oklch */ color: oklch(61.4% 0.174 282.6);
Tailwind
colors: {
  custom: {
    50: '#a69af0',
    500: '#7871e8',
    950: '#000000',
  },
}
SCSS
$custom: #7871e8;
$custom-light: #a69af0;
$custom-dark: #000000;
JSON
{
  "hex": "#7871e8",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 232
  },
  "hsl": {
    "h": 243.529,
    "s": 72.121,
    "l": 67.647
  },
  "oklch": {
    "l": 0.61363,
    "c": 0.17426,
    "h": 282.6
  },
  "luminance": 0.2163
}

Semantic roles & 50–950 ramp

primary
#7871E8
secondary
#EBEDC8
accent
#D411C9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7871E8

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

Preview Lab → · Contrast checker → · Palette generator →

#7871E8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva