#7872BC#7872BC

#7872BC is a mid, moderate blue. Relative luminance 0.197; OKLCH L 58.9% C 0.112 H 286.1°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7872BC
RGBrgb(120, 114, 188)
HSLhsl(245, 36%, 59%)
HSVhsv(245, 39%, 74%)
CMYKcmyk(36.2%, 39.4%, 0%, 26.3%)
CIE-LABlab(51.45, 20.12, -38.17)
CIE-LCHlch(51.45, 43.15, 297.79°)
OKLaboklab(58.93% 0.031 -0.1071)
OKLCHoklch(58.93% 0.112 286.1)
XYZxyz(22.8377, 19.6578, 50.1583)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872BC #B6BC72
analogous
#7291BC #7872BC #9D72BC
triadic
#7872BC #BC7872 #72BC78
tetradic
#7872BC #BC7291 #B6BC72 #72BC9D
square
#7872BC #BC7291 #B6BC72 #72BC9D
split-complementary
#7872BC #BC9D72 #91BC72
monochromatic
#3F3A7A #554EA3 #7872BC #A09BD0 #C7C5E3

Accessibility & contrast

On white

4.26
#7872BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#7872BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872BC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872BC#FFFFFF#000000##000000
##7872BC1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A7DBF
Deuteranopia (green-blind)
#5979BA
Tritanopia (blue-blind)
#66808E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7872bc;
/* rgb */ color: rgb(120, 114, 188);
/* oklch */ color: oklch(58.9% 0.112 286.1);
Tailwind
colors: {
  custom: {
    50: '#a19ad0',
    500: '#7872bc',
    950: '#000000',
  },
}
SCSS
$custom: #7872bc;
$custom-light: #a19ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7872bc",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 188
  },
  "hsl": {
    "h": 244.865,
    "s": 35.577,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58926,
    "c": 0.11151,
    "h": 286.1
  },
  "luminance": 0.19659
}

Semantic roles & 50–950 ramp

primary
#7872BC
secondary
#D1D3B6
accent
#CC5CC3
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7872BC

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

Preview Lab → · Contrast checker → · Palette generator →

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