#7870BC#7870BC

#7870BC is a mid, moderate blue. Relative luminance 0.192; OKLCH L 58.5% C 0.115 H 287.1°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7870BC
RGBrgb(120, 112, 188)
HSLhsl(246, 36%, 59%)
HSVhsv(246, 40%, 74%)
CMYKcmyk(36.2%, 40.4%, 0%, 26.3%)
CIE-LABlab(50.93, 21.32, -38.98)
CIE-LCHlch(50.93, 44.43, 298.67°)
OKLaboklab(58.53% 0.0337 -0.1095)
OKLCHoklch(58.53% 0.115 287.1)
XYZxyz(22.6145, 19.2116, 50.0839)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870BC #B4BC70
analogous
#708EBC #7870BC #9E70BC
triadic
#7870BC #BC7870 #70BC78
tetradic
#7870BC #BC708E #B4BC70 #70BC9E
square
#7870BC #BC708E #B4BC70 #70BC9E
split-complementary
#7870BC #BC9E70 #8EBC70
monochromatic
#3F3979 #554CA3 #7870BC #9F9AD0 #C7C3E3

Accessibility & contrast

On white

4.34
#7870BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#7870BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870BC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870BC#FFFFFF#000000##000000
##7870BC1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#577BBF
Deuteranopia (green-blind)
#5677BA
Tritanopia (blue-blind)
#667E8D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7870bc;
/* rgb */ color: rgb(120, 112, 188);
/* oklch */ color: oklch(58.5% 0.115 287.1);
Tailwind
colors: {
  custom: {
    50: '#a199d0',
    500: '#7870bc',
    950: '#000000',
  },
}
SCSS
$custom: #7870bc;
$custom-light: #a199d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7870bc",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 188
  },
  "hsl": {
    "h": 246.316,
    "s": 36.19,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58534,
    "c": 0.11455,
    "h": 287.1
  },
  "luminance": 0.19212
}

Semantic roles & 50–950 ramp

primary
#7870BC
secondary
#D0D3B5
accent
#CC5CC0
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #7870BC

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

Preview Lab → · Contrast checker → · Palette generator →

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