#7872DC#7872DC

#7872DC is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.8% C 0.157 H 283.3°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7872DC
RGBrgb(120, 114, 220)
HSLhsl(243, 60%, 65%)
HSVhsv(243, 48%, 86%)
CMYKcmyk(45.5%, 48.2%, 0%, 13.7%)
CIE-LABlab(53.16, 29.26, -53.68)
CIE-LCHlch(53.16, 61.14, 298.59°)
OKLaboklab(60.78% 0.0359 -0.1524)
OKLCHoklch(60.78% 0.157 283.3)
XYZxyz(26.6775, 21.1938, 70.3814)
Luminance0.2119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872DC #D6DC72
analogous
#72A1DC #7872DC #AD72DC
triadic
#7872DC #DC7872 #72DC78
tetradic
#7872DC #DC72A1 #D6DC72 #72DCAD
square
#7872DC #DC72A1 #D6DC72 #72DCAD
split-complementary
#7872DC #DCAD72 #A1DC72
monochromatic
#312AAA #4941D0 #7872DC #A7A3E8 #D6D4F4

Accessibility & contrast

On white

4.01
#7872DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#7872DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872DC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872DC#FFFFFF#000000##000000
##7872DC1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4582E0
Deuteranopia (green-blind)
#407BDA
Tritanopia (blue-blind)
#57889C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7872dc;
/* rgb */ color: rgb(120, 114, 220);
/* oklch */ color: oklch(60.8% 0.157 283.3);
Tailwind
colors: {
  custom: {
    50: '#a49ae7',
    500: '#7872dc',
    950: '#000000',
  },
}
SCSS
$custom: #7872dc;
$custom-light: #a49ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#7872dc",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 220
  },
  "hsl": {
    "h": 243.396,
    "s": 60.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.60782,
    "c": 0.15662,
    "h": 283.3
  },
  "luminance": 0.21195
}

Semantic roles & 50–950 ramp

primary
#7872DC
secondary
#E5E7C3
accent
#C81EBE
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7872DC

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

Preview Lab → · Contrast checker → · Palette generator →

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