#7872EA#7872EA

#7872EA is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.7% C 0.176 H 282.2°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7872EA
RGBrgb(120, 114, 234)
HSLhsl(243, 74%, 68%)
HSVhsv(243, 51%, 92%)
CMYKcmyk(48.7%, 51.3%, 0%, 8.2%)
CIE-LABlab(53.99, 33.40, -60.21)
CIE-LCHlch(53.99, 68.86, 299.02°)
OKLaboklab(61.67% 0.0371 -0.1716)
OKLCHoklch(61.67% 0.176 282.2)
XYZxyz(28.6098, 21.9667, 80.5584)
Luminance0.2197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872EA #E4EA72
analogous
#72A8EA #7872EA #B472EA
triadic
#7872EA #EA7872 #72EA78
tetradic
#7872EA #EA72A8 #E4EA72 #72EAB4
square
#7872EA #EA72A8 #E4EA72 #72EAB4
split-complementary
#7872EA #EAB472 #A8EA72
monochromatic
#261DC4 #453DE2 #7872EA #ABA7F2 #DEDDFA

Accessibility & contrast

On white

3.89
#7872EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#7872EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872EA
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872EA#FFFFFF#000000##000000
##7872EA1.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3685EE
Deuteranopia (green-blind)
#2D7DE7
Tritanopia (blue-blind)
#4E8CA3
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7872ea;
/* rgb */ color: rgb(120, 114, 234);
/* oklch */ color: oklch(61.7% 0.176 282.2);
Tailwind
colors: {
  custom: {
    50: '#a69af1',
    500: '#7872ea',
    950: '#000000',
  },
}
SCSS
$custom: #7872ea;
$custom-light: #a69af1;
$custom-dark: #000000;
JSON
{
  "hex": "#7872ea",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 243,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.61673,
    "c": 0.17559,
    "h": 282.2
  },
  "luminance": 0.21968
}

Semantic roles & 50–950 ramp

primary
#7872EA
secondary
#ECEECA
accent
#D60FCC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7872EA

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

Preview Lab → · Contrast checker → · Palette generator →

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