#7872EB#7872EB

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

Color values

HEX#7872EB
RGBrgb(120, 114, 235)
HSLhsl(243, 75%, 68%)
HSVhsv(243, 51%, 92%)
CMYKcmyk(48.9%, 51.5%, 0%, 7.8%)
CIE-LABlab(54.05, 33.70, -60.68)
CIE-LCHlch(54.05, 69.41, 299.05°)
OKLaboklab(61.74% 0.0372 -0.173)
OKLCHoklch(61.74% 0.177 282.1)
XYZxyz(28.7539, 22.0243, 81.3172)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7872EB #E5EB72
analogous
#72A8EB #7872EB #B472EB
triadic
#7872EB #EB7872 #72EB78
tetradic
#7872EB #EB72A8 #E5EB72 #72EBB4
square
#7872EB #EB72A8 #E5EB72 #72EBB4
split-complementary
#7872EB #EBB472 #A8EB72
monochromatic
#251CC6 #453CE3 #7872EB #ABA8F3 #DFDDFA

Accessibility & contrast

On white

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

On black

5.41
#7872EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7872EB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7872EB#FFFFFF#000000##000000
##7872EB1.003.895.415.41
#FFFFFF3.891.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3585EF
Deuteranopia (green-blind)
#2B7DE8
Tritanopia (blue-blind)
#4D8DA4
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7872eb;
/* rgb */ color: rgb(120, 114, 235);
/* oklch */ color: oklch(61.7% 0.177 282.1);
Tailwind
colors: {
  custom: {
    50: '#a69af2',
    500: '#7872eb',
    950: '#000000',
  },
}
SCSS
$custom: #7872eb;
$custom-light: #a69af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7872eb",
  "rgb": {
    "r": 120,
    "g": 114,
    "b": 235
  },
  "hsl": {
    "h": 242.975,
    "s": 75.155,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61738,
    "c": 0.17694,
    "h": 282.1
  },
  "luminance": 0.22026
}

Semantic roles & 50–950 ramp

primary
#7872EB
secondary
#EDEFCA
accent
#D70ECD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7872EB

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

Preview Lab → · Contrast checker → · Palette generator →

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