#7872CD#7872CD

#7872CD is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.9% C 0.136 H 284.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7872CD
RGBrgb(120, 114, 205)
HSLhsl(244, 48%, 63%)
HSVhsv(244, 44%, 80%)
CMYKcmyk(41.5%, 44.4%, 0%, 19.6%)
CIE-LABlab(52.33, 24.91, -46.52)
CIE-LCHlch(52.33, 52.77, 298.17°)
OKLaboklab(59.88% 0.034 -0.1314)
OKLCHoklch(59.88% 0.136 284.5)
XYZxyz(24.7793, 20.4345, 60.3844)
Luminance0.2044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872CD #C7CD72
analogous
#729ACD #7872CD #A572CD
triadic
#7872CD #CD7872 #72CD78
tetradic
#7872CD #CD729A #C7CD72 #72CDA5
square
#7872CD #CD729A #C7CD72 #72CDA5
split-complementary
#7872CD #CDA572 #9ACD72
monochromatic
#3A3391 #4D45BD #7872CD #A39FDD #CFCCED

Accessibility & contrast

On white

4.13
#7872CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#7872CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872CD
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872CD#FFFFFF#000000##000000
##7872CD1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5080D0
Deuteranopia (green-blind)
#4D7ACB
Tritanopia (blue-blind)
#5F8495
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7872cd;
/* rgb */ color: rgb(120, 114, 205);
/* oklch */ color: oklch(59.9% 0.136 284.5);
Tailwind
colors: {
  custom: {
    50: '#a39add',
    500: '#7872cd',
    950: '#000000',
  },
}
SCSS
$custom: #7872cd;
$custom-light: #a39add;
$custom-dark: #000000;
JSON
{
  "hex": "#7872cd",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 205
  },
  "hsl": {
    "h": 243.956,
    "s": 47.644,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59879,
    "c": 0.13577,
    "h": 284.5
  },
  "luminance": 0.20435
}

Semantic roles & 50–950 ramp

primary
#7872CD
secondary
#DCDEBD
accent
#BB2BB1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7872CD

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

Preview Lab → · Contrast checker → · Palette generator →

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