#7871BB#7871BB

#7871BB is a mid, moderate blue. Relative luminance 0.194; OKLCH L 58.7% C 0.112 H 286.8°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7871BB
RGBrgb(120, 113, 187)
HSLhsl(246, 35%, 59%)
HSVhsv(246, 40%, 73%)
CMYKcmyk(35.8%, 39.6%, 0%, 26.7%)
CIE-LABlab(51.14, 20.44, -38.08)
CIE-LCHlch(51.14, 43.22, 298.23°)
OKLaboklab(58.68% 0.0322 -0.1068)
OKLCHoklch(58.68% 0.112 286.8)
XYZxyz(22.6181, 19.3905, 49.5551)
Luminance0.1939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871BB #B4BB71
analogous
#718FBB #7871BB #9D71BB
triadic
#7871BB #BB7871 #71BB78
tetradic
#7871BB #BB718F #B4BB71 #71BB9D
square
#7871BB #BB718F #B4BB71 #71BB9D
split-complementary
#7871BB #BB9D71 #8FBB71
monochromatic
#3F3A78 #554DA1 #7871BB #9F9ACF #C7C4E3

Accessibility & contrast

On white

4.30
#7871BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7871BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871BB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871BB#FFFFFF#000000##000000
##7871BB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#597CBE
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#677F8D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7871bb;
/* rgb */ color: rgb(120, 113, 187);
/* oklch */ color: oklch(58.7% 0.112 286.8);
Tailwind
colors: {
  custom: {
    50: '#a199d0',
    500: '#7871bb',
    950: '#000000',
  },
}
SCSS
$custom: #7871bb;
$custom-light: #a199d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7871bb",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 245.676,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58676,
    "c": 0.11158,
    "h": 286.8
  },
  "luminance": 0.19391
}

Semantic roles & 50–950 ramp

primary
#7871BB
secondary
#D0D2B5
accent
#CB5DC1
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7871BB

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

Preview Lab → · Contrast checker → · Palette generator →

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