#7871DC#7871DC

#7871DC is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.6% C 0.158 H 283.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7871DC
RGBrgb(120, 113, 220)
HSLhsl(244, 60%, 65%)
HSVhsv(244, 49%, 86%)
CMYKcmyk(45.5%, 48.6%, 0%, 13.7%)
CIE-LABlab(52.92, 29.86, -54.08)
CIE-LCHlch(52.92, 61.77, 298.91°)
OKLaboklab(60.6% 0.0371 -0.1536)
OKLCHoklch(60.6% 0.158 283.6)
XYZxyz(26.5653, 20.9694, 70.3440)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871DC #D5DC71
analogous
#71A0DC #7871DC #AD71DC
triadic
#7871DC #DC7871 #71DC78
tetradic
#7871DC #DC71A0 #D5DC71 #71DCAD
square
#7871DC #DC71A0 #D5DC71 #71DCAD
split-complementary
#7871DC #DCAD71 #A0DC71
monochromatic
#322AA9 #4940D0 #7871DC #A7A2E8 #D5D3F4

Accessibility & contrast

On white

4.04
#7871DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7871DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871DC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871DC#FFFFFF#000000##000000
##7871DC1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4382E0
Deuteranopia (green-blind)
#3E7BDA
Tritanopia (blue-blind)
#57889C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7871dc;
/* rgb */ color: rgb(120, 113, 220);
/* oklch */ color: oklch(60.6% 0.158 283.6);
Tailwind
colors: {
  custom: {
    50: '#a49ae7',
    500: '#7871dc',
    950: '#000000',
  },
}
SCSS
$custom: #7871dc;
$custom-light: #a49ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#7871dc",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 243.925,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60597,
    "c": 0.15802,
    "h": 283.6
  },
  "luminance": 0.20971
}

Semantic roles & 50–950 ramp

primary
#7871DC
secondary
#E4E6C2
accent
#C81DBD
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7871DC

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

Preview Lab → · Contrast checker → · Palette generator →

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