#7871EB#7871EB

#7871EB is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.6% C 0.178 H 282.4°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7871EB
RGBrgb(120, 113, 235)
HSLhsl(243, 75%, 68%)
HSVhsv(243, 52%, 92%)
CMYKcmyk(48.9%, 51.9%, 0%, 7.8%)
CIE-LABlab(53.81, 34.29, -61.06)
CIE-LCHlch(53.81, 70.03, 299.32°)
OKLaboklab(61.56% 0.0383 -0.1741)
OKLCHoklch(61.56% 0.178 282.4)
XYZxyz(28.6417, 21.8000, 81.2798)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871EB #E4EB71
analogous
#71A7EB #7871EB #B571EB
triadic
#7871EB #EB7871 #71EB78
tetradic
#7871EB #EB71A7 #E4EB71 #71EBB5
square
#7871EB #EB71A7 #E4EB71 #71EBB5
split-complementary
#7871EB #EBB571 #A7EB71
monochromatic
#261CC6 #453BE3 #7871EB #ABA7F3 #DEDCFA

Accessibility & contrast

On white

3.92
#7871EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#7871EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871EB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871EB#FFFFFF#000000##000000
##7871EB1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3285EF
Deuteranopia (green-blind)
#297CE8
Tritanopia (blue-blind)
#4D8CA3
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7871eb;
/* rgb */ color: rgb(120, 113, 235);
/* oklch */ color: oklch(61.6% 0.178 282.4);
Tailwind
colors: {
  custom: {
    50: '#a69af2',
    500: '#7871eb',
    950: '#000000',
  },
}
SCSS
$custom: #7871eb;
$custom-light: #a69af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7871eb",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 243.443,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6156,
    "c": 0.17828,
    "h": 282.4
  },
  "luminance": 0.21801
}

Semantic roles & 50–950 ramp

primary
#7871EB
secondary
#ECEEC9
accent
#D70ECC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7871EB

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

Preview Lab → · Contrast checker → · Palette generator →

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