#7871EA#7871EA

#7871EA is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.5% C 0.177 H 282.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7871EA
RGBrgb(120, 113, 234)
HSLhsl(243, 74%, 68%)
HSVhsv(243, 52%, 92%)
CMYKcmyk(48.7%, 51.7%, 0%, 8.2%)
CIE-LABlab(53.75, 33.99, -60.60)
CIE-LCHlch(53.75, 69.48, 299.29°)
OKLaboklab(61.49% 0.0382 -0.1728)
OKLCHoklch(61.49% 0.177 282.5)
XYZxyz(28.4977, 21.7424, 80.5210)
Luminance0.2174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871EA #E3EA71
analogous
#71A6EA #7871EA #B471EA
triadic
#7871EA #EA7871 #71EA78
tetradic
#7871EA #EA71A6 #E3EA71 #71EAB4
square
#7871EA #EA71A6 #E3EA71 #71EAB4
split-complementary
#7871EA #EAB471 #A6EA71
monochromatic
#271DC4 #453CE2 #7871EA #ABA6F2 #DDDCFA

Accessibility & contrast

On white

3.93
#7871EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#7871EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871EA
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871EA#FFFFFF#000000##000000
##7871EA1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3485EE
Deuteranopia (green-blind)
#2A7CE7
Tritanopia (blue-blind)
#4E8CA3
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7871ea;
/* rgb */ color: rgb(120, 113, 234);
/* oklch */ color: oklch(61.5% 0.177 282.5);
Tailwind
colors: {
  custom: {
    50: '#a69af1',
    500: '#7871ea',
    950: '#000000',
  },
}
SCSS
$custom: #7871ea;
$custom-light: #a69af1;
$custom-dark: #000000;
JSON
{
  "hex": "#7871ea",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 243.471,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.61494,
    "c": 0.17694,
    "h": 282.5
  },
  "luminance": 0.21744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7871EA

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

Preview Lab → · Contrast checker → · Palette generator →

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