#7871BC#7871BC

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

Color values

HEX#7871BC
RGBrgb(120, 113, 188)
HSLhsl(246, 36%, 59%)
HSVhsv(246, 40%, 74%)
CMYKcmyk(36.2%, 39.9%, 0%, 26.3%)
CIE-LABlab(51.19, 20.72, -38.58)
CIE-LCHlch(51.19, 43.79, 298.24°)
OKLaboklab(58.73% 0.0324 -0.1083)
OKLCHoklch(58.73% 0.113 286.6)
XYZxyz(22.7255, 19.4335, 50.1209)
Luminance0.1943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871BC #B5BC71
analogous
#7190BC #7871BC #9E71BC
triadic
#7871BC #BC7871 #71BC78
tetradic
#7871BC #BC7190 #B5BC71 #71BC9E
square
#7871BC #BC7190 #B5BC71 #71BC9E
split-complementary
#7871BC #BC9E71 #90BC71
monochromatic
#3F3979 #554DA3 #7871BC #A09BD0 #C7C4E3

Accessibility & contrast

On white

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

On black

4.89
#7871BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871BC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871BC#FFFFFF#000000##000000
##7871BC1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#597CBF
Deuteranopia (green-blind)
#5878BA
Tritanopia (blue-blind)
#667F8D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7871bc;
/* rgb */ color: rgb(120, 113, 188);
/* oklch */ color: oklch(58.7% 0.113 286.6);
Tailwind
colors: {
  custom: {
    50: '#a199d0',
    500: '#7871bc',
    950: '#000000',
  },
}
SCSS
$custom: #7871bc;
$custom-light: #a199d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7871bc",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 245.6,
    "s": 35.885,
    "l": 59.02
  },
  "oklch": {
    "l": 0.5873,
    "c": 0.11302,
    "h": 286.6
  },
  "luminance": 0.19434
}

Semantic roles & 50–950 ramp

primary
#7871BC
secondary
#D0D3B6
accent
#CC5CC1
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7871BC

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

Preview Lab → · Contrast checker → · Palette generator →

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