#7871BD#7871BD

#7871BD is a mid, moderate blue. Relative luminance 0.195; OKLCH L 58.8% C 0.114 H 286.5°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7871BD
RGBrgb(120, 113, 189)
HSLhsl(246, 37%, 59%)
HSVhsv(246, 40%, 74%)
CMYKcmyk(36.5%, 40.2%, 0%, 25.9%)
CIE-LABlab(51.24, 21.00, -39.08)
CIE-LCHlch(51.24, 44.36, 298.25°)
OKLaboklab(58.78% 0.0326 -0.1097)
OKLCHoklch(58.78% 0.114 286.5)
XYZxyz(22.8336, 19.4768, 50.6906)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871BD #B6BD71
analogous
#7190BD #7871BD #9E71BD
triadic
#7871BD #BD7871 #71BD78
tetradic
#7871BD #BD7190 #B6BD71 #71BD9E
square
#7871BD #BD7190 #B6BD71 #71BD9E
split-complementary
#7871BD #BD9E71 #90BD71
monochromatic
#3F397B #554CA4 #7871BD #A09BD0 #C7C5E4

Accessibility & contrast

On white

4.29
#7871BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7871BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871BD
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871BD#FFFFFF#000000##000000
##7871BD1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#587CC0
Deuteranopia (green-blind)
#5778BB
Tritanopia (blue-blind)
#66808E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7871bd;
/* rgb */ color: rgb(120, 113, 189);
/* oklch */ color: oklch(58.8% 0.114 286.5);
Tailwind
colors: {
  custom: {
    50: '#a199d1',
    500: '#7871bd',
    950: '#000000',
  },
}
SCSS
$custom: #7871bd;
$custom-light: #a199d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7871bd",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 245.526,
    "s": 36.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58784,
    "c": 0.11447,
    "h": 286.5
  },
  "luminance": 0.19477
}

Semantic roles & 50–950 ramp

primary
#7871BD
secondary
#D1D4B6
accent
#CD5BC2
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7871BD

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

Preview Lab → · Contrast checker → · Palette generator →

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