#7872BB#7872BB

#7872BB is a mid, moderate blue. Relative luminance 0.196; OKLCH L 58.9% C 0.110 H 286.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7872BB
RGBrgb(120, 114, 187)
HSLhsl(245, 35%, 59%)
HSVhsv(245, 39%, 73%)
CMYKcmyk(35.8%, 39%, 0%, 26.7%)
CIE-LABlab(51.40, 19.84, -37.67)
CIE-LCHlch(51.40, 42.58, 297.77°)
OKLaboklab(58.87% 0.0308 -0.1057)
OKLCHoklch(58.87% 0.11 286.3)
XYZxyz(22.7302, 19.6149, 49.5925)
Luminance0.1962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872BB #B5BB72
analogous
#7291BB #7872BB #9D72BB
triadic
#7872BB #BB7872 #72BB78
tetradic
#7872BB #BB7291 #B5BB72 #72BB9D
square
#7872BB #BB7291 #B5BB72 #72BB9D
split-complementary
#7872BB #BB9D72 #91BB72
monochromatic
#3F3A78 #554EA2 #7872BB #A09BCF #C7C5E3

Accessibility & contrast

On white

4.27
#7872BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#7872BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872BB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872BB#FFFFFF#000000##000000
##7872BB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B7CBE
Deuteranopia (green-blind)
#5978B9
Tritanopia (blue-blind)
#66808D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7872bb;
/* rgb */ color: rgb(120, 114, 187);
/* oklch */ color: oklch(58.9% 0.110 286.3);
Tailwind
colors: {
  custom: {
    50: '#a19ad0',
    500: '#7872bb',
    950: '#000000',
  },
}
SCSS
$custom: #7872bb;
$custom-light: #a19ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7872bb",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 187
  },
  "hsl": {
    "h": 244.932,
    "s": 34.928,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58873,
    "c": 0.11006,
    "h": 286.3
  },
  "luminance": 0.19616
}

Semantic roles & 50–950 ramp

primary
#7872BB
secondary
#D0D3B6
accent
#CB5DC2
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7872BB

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

Preview Lab → · Contrast checker → · Palette generator →

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