#7870BB#7870BB

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

Color values

HEX#7870BB
RGBrgb(120, 112, 187)
HSLhsl(246, 36%, 59%)
HSVhsv(246, 40%, 73%)
CMYKcmyk(35.8%, 40.1%, 0%, 26.7%)
CIE-LABlab(50.88, 21.04, -38.49)
CIE-LCHlch(50.88, 43.86, 298.67°)
OKLaboklab(58.48% 0.0335 -0.108)
OKLCHoklch(58.48% 0.113 287.2)
XYZxyz(22.5071, 19.1686, 49.5181)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870BB #B3BB70
analogous
#708DBB #7870BB #9D70BB
triadic
#7870BB #BB7870 #70BB78
tetradic
#7870BB #BB708D #B3BB70 #70BB9D
square
#7870BB #BB708D #B3BB70 #70BB9D
split-complementary
#7870BB #BB9D70 #8DBB70
monochromatic
#403978 #564DA1 #7870BB #9F99CF #C6C3E2

Accessibility & contrast

On white

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

On black

4.83
#7870BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870BB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870BB#FFFFFF#000000##000000
##7870BB1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#587BBE
Deuteranopia (green-blind)
#5777B9
Tritanopia (blue-blind)
#677E8C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7870bb;
/* rgb */ color: rgb(120, 112, 187);
/* oklch */ color: oklch(58.5% 0.113 287.2);
Tailwind
colors: {
  custom: {
    50: '#a199d0',
    500: '#7870bb',
    950: '#000000',
  },
}
SCSS
$custom: #7870bb;
$custom-light: #a199d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7870bb",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 187
  },
  "hsl": {
    "h": 246.4,
    "s": 35.545,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5848,
    "c": 0.1131,
    "h": 287.2
  },
  "luminance": 0.19169
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7870BB

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

Preview Lab → · Contrast checker → · Palette generator →

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