#7871DB#7871DB

#7871DB is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.5% C 0.157 H 283.7°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7871DB
RGBrgb(120, 113, 219)
HSLhsl(244, 60%, 65%)
HSVhsv(244, 48%, 86%)
CMYKcmyk(45.2%, 48.4%, 0%, 14.1%)
CIE-LABlab(52.86, 29.57, -53.60)
CIE-LCHlch(52.86, 61.22, 298.88°)
OKLaboklab(60.54% 0.037 -0.1522)
OKLCHoklch(60.54% 0.157 283.7)
XYZxyz(26.4333, 20.9166, 69.6486)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871DB #D4DB71
analogous
#719FDB #7871DB #AD71DB
triadic
#7871DB #DB7871 #71DB78
tetradic
#7871DB #DB719F #D4DB71 #71DBAD
square
#7871DB #DB719F #D4DB71 #71DBAD
split-complementary
#7871DB #DBAD71 #9FDB71
monochromatic
#332AA7 #4A40CF #7871DB #A6A2E7 #D5D3F4

Accessibility & contrast

On white

4.05
#7871DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#7871DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871DB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871DB#FFFFFF#000000##000000
##7871DB1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4482DF
Deuteranopia (green-blind)
#3F7BD9
Tritanopia (blue-blind)
#58879C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7871db;
/* rgb */ color: rgb(120, 113, 219);
/* oklch */ color: oklch(60.5% 0.157 283.7);
Tailwind
colors: {
  custom: {
    50: '#a49ae7',
    500: '#7871db',
    950: '#000000',
  },
}
SCSS
$custom: #7871db;
$custom-light: #a49ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#7871db",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 243.962,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.60535,
    "c": 0.15665,
    "h": 283.7
  },
  "luminance": 0.20918
}

Semantic roles & 50–950 ramp

primary
#7871DB
secondary
#E3E6C2
accent
#C71EBC
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7871DB

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

Preview Lab → · Contrast checker → · Palette generator →

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