#7871EF#7871EF

#7871EF is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.8% C 0.184 H 282.1°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7871EF
RGBrgb(120, 113, 239)
HSLhsl(243, 80%, 69%)
HSVhsv(243, 53%, 94%)
CMYKcmyk(49.8%, 52.7%, 0%, 6.3%)
CIE-LABlab(54.06, 35.48, -62.89)
CIE-LCHlch(54.06, 72.21, 299.43°)
OKLaboklab(61.83% 0.0385 -0.1795)
OKLCHoklch(61.83% 0.184 282.1)
XYZxyz(29.2261, 22.0337, 84.3576)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871EF #E8EF71
analogous
#71A9EF #7871EF #B771EF
triadic
#7871EF #EF7871 #71EF78
tetradic
#7871EF #EF71A9 #E8EF71 #71EFB7
square
#7871EF #EF71A9 #E8EF71 #71EFB7
split-complementary
#7871EF #EFB771 #A9EF71
monochromatic
#2117CE #443AE9 #7871EF #ACA8F5 #E1DFFB

Accessibility & contrast

On white

3.88
#7871EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#7871EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871EF
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871EF#FFFFFF#000000##000000
##7871EF1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C86F3
Deuteranopia (green-blind)
#207DEC
Tritanopia (blue-blind)
#4A8DA5
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7871ef;
/* rgb */ color: rgb(120, 113, 239);
/* oklch */ color: oklch(61.8% 0.184 282.1);
Tailwind
colors: {
  custom: {
    50: '#a79af5',
    500: '#7871ef',
    950: '#000000',
  },
}
SCSS
$custom: #7871ef;
$custom-light: #a79af5;
$custom-dark: #000000;
JSON
{
  "hex": "#7871ef",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 243.333,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.61825,
    "c": 0.18359,
    "h": 282.1
  },
  "luminance": 0.22035
}

Semantic roles & 50–950 ramp

primary
#7871EF
secondary
#EEF0CB
accent
#DC09D0
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7871EF

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

Preview Lab → · Contrast checker → · Palette generator →

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