#7872BF#7872BF

#7872BF is a mid, moderate blue. Relative luminance 0.198; OKLCH L 59.1% C 0.116 H 285.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7872BF
RGBrgb(120, 114, 191)
HSLhsl(245, 38%, 60%)
HSVhsv(245, 40%, 75%)
CMYKcmyk(37.2%, 40.3%, 0%, 25.1%)
CIE-LABlab(51.60, 20.95, -39.66)
CIE-LCHlch(51.60, 44.86, 297.84°)
OKLaboklab(59.09% 0.0316 -0.1114)
OKLCHoklch(59.09% 0.116 285.8)
XYZxyz(23.1644, 19.7885, 51.8792)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872BF #B9BF72
analogous
#7293BF #7872BF #9E72BF
triadic
#7872BF #BF7872 #72BF78
tetradic
#7872BF #BF7293 #B9BF72 #72BF9E
square
#7872BF #BF7293 #B9BF72 #72BF9E
split-complementary
#7872BF #BF9E72 #93BF72
monochromatic
#3E397E #534CA8 #7872BF #A09CD2 #C9C6E5

Accessibility & contrast

On white

4.24
#7872BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7872BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872BF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872BF#FFFFFF#000000##000000
##7872BF1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#597DC2
Deuteranopia (green-blind)
#5779BD
Tritanopia (blue-blind)
#65818F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7872bf;
/* rgb */ color: rgb(120, 114, 191);
/* oklch */ color: oklch(59.1% 0.116 285.8);
Tailwind
colors: {
  custom: {
    50: '#a29ad2',
    500: '#7872bf',
    950: '#000000',
  },
}
SCSS
$custom: #7872bf;
$custom-light: #a29ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7872bf",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 191
  },
  "hsl": {
    "h": 244.675,
    "s": 37.561,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59089,
    "c": 0.11584,
    "h": 285.8
  },
  "luminance": 0.19789
}

Semantic roles & 50–950 ramp

primary
#7872BF
secondary
#D3D5B8
accent
#CE5AC5
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7872BF

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

Preview Lab → · Contrast checker → · Palette generator →

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