#7870AB#7870AB

#7870AB is a mid, moderate blue. Relative luminance 0.185; OKLCH L 57.6% C 0.090 H 289.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7870AB
RGBrgb(120, 112, 171)
HSLhsl(248, 26%, 55%)
HSVhsv(248, 35%, 67%)
CMYKcmyk(29.8%, 34.5%, 0%, 32.9%)
CIE-LABlab(50.12, 16.73, -30.41)
CIE-LCHlch(50.12, 34.71, 298.81°)
OKLaboklab(57.65% 0.03 -0.0846)
OKLCHoklch(57.65% 0.09 289.5)
XYZxyz(20.8887, 18.5213, 40.9946)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870AB #A3AB70
analogous
#7085AB #7870AB #9570AB
triadic
#7870AB #AB7870 #70AB78
tetradic
#7870AB #AB7085 #A3AB70 #70AB95
square
#7870AB #AB7085 #A3AB70 #70AB95
split-complementary
#7870AB #AB9570 #85AB70
monochromatic
#413B65 #5A528C #7870AB #9C97C2 #C1BDD8

Accessibility & contrast

On white

4.46
#7870AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7870AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870AB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870AB#FFFFFF#000000##000000
##7870AB1.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6078AD
Deuteranopia (green-blind)
#5F76A9
Tritanopia (blue-blind)
#6C7A86
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7870ab;
/* rgb */ color: rgb(120, 112, 171);
/* oklch */ color: oklch(57.6% 0.090 289.5);
Tailwind
colors: {
  custom: {
    50: '#a099c4',
    500: '#7870ab',
    950: '#000000',
  },
}
SCSS
$custom: #7870ab;
$custom-light: #a099c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7870ab",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 171
  },
  "hsl": {
    "h": 248.136,
    "s": 25.991,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57648,
    "c": 0.08979,
    "h": 289.5
  },
  "luminance": 0.18522
}

Semantic roles & 50–950 ramp

primary
#7870AB
secondary
#C4C8AF
accent
#C265B6
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #7870AB

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

Preview Lab → · Contrast checker → · Palette generator →

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