#7872EC#7872EC

#7872EC is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.8% C 0.178 H 282.1°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7872EC
RGBrgb(120, 114, 236)
HSLhsl(243, 76%, 69%)
HSVhsv(243, 52%, 93%)
CMYKcmyk(49.2%, 51.7%, 0%, 7.5%)
CIE-LABlab(54.11, 34.00, -61.13)
CIE-LCHlch(54.11, 69.95, 299.08°)
OKLaboklab(61.8% 0.0372 -0.1743)
OKLCHoklch(61.8% 0.178 282.1)
XYZxyz(28.8988, 22.0823, 82.0802)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872EC #E6EC72
analogous
#72A9EC #7872EC #B572EC
triadic
#7872EC #EC7872 #72EC78
tetradic
#7872EC #EC72A9 #E6EC72 #72ECB5
square
#7872EC #EC72A9 #E6EC72 #72ECB5
split-complementary
#7872EC #ECB572 #A9EC72
monochromatic
#241BC9 #443CE5 #7872EC #ACA8F3 #DFDEFB

Accessibility & contrast

On white

3.88
#7872EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#7872EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872EC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872EC#FFFFFF#000000##000000
##7872EC1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3486F0
Deuteranopia (green-blind)
#297DE9
Tritanopia (blue-blind)
#4C8DA4
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7872ec;
/* rgb */ color: rgb(120, 114, 236);
/* oklch */ color: oklch(61.8% 0.178 282.1);
Tailwind
colors: {
  custom: {
    50: '#a69af3',
    500: '#7872ec',
    950: '#000000',
  },
}
SCSS
$custom: #7872ec;
$custom-light: #a69af3;
$custom-dark: #000000;
JSON
{
  "hex": "#7872ec",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 242.951,
    "s": 76.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61804,
    "c": 0.17827,
    "h": 282.1
  },
  "luminance": 0.22084
}

Semantic roles & 50–950 ramp

primary
#7872EC
secondary
#EDEFCB
accent
#D80DCE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7872EC

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

Preview Lab → · Contrast checker → · Palette generator →

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