#7873EB#7873EB

#7873EB is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.9% C 0.176 H 281.8°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7873EB
RGBrgb(120, 115, 235)
HSLhsl(243, 75%, 69%)
HSVhsv(243, 51%, 92%)
CMYKcmyk(48.9%, 51.1%, 0%, 7.8%)
CIE-LABlab(54.29, 33.11, -60.29)
CIE-LCHlch(54.29, 68.78, 298.77°)
OKLaboklab(61.92% 0.0361 -0.1718)
OKLCHoklch(61.92% 0.176 281.8)
XYZxyz(28.8673, 22.2512, 81.3550)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7873EB #E6EB73
analogous
#73AAEB #7873EB #B473EB
triadic
#7873EB #EB7873 #73EB78
tetradic
#7873EB #EB73AA #E6EB73 #73EBB4
square
#7873EB #EB73AA #E6EB73 #73EBB4
split-complementary
#7873EB #EBB473 #AAEB73
monochromatic
#241CC7 #443DE3 #7873EB #ACA9F3 #DFDEFA

Accessibility & contrast

On white

3.85
#7873EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#7873EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7873EB
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7873EB#FFFFFF#000000##000000
##7873EB1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3786EF
Deuteranopia (green-blind)
#2E7EE8
Tritanopia (blue-blind)
#4D8DA4
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7873eb;
/* rgb */ color: rgb(120, 115, 235);
/* oklch */ color: oklch(61.9% 0.176 281.8);
Tailwind
colors: {
  custom: {
    50: '#a69bf2',
    500: '#7873eb',
    950: '#000000',
  },
}
SCSS
$custom: #7873eb;
$custom-light: #a69bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7873eb",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 235
  },
  "hsl": {
    "h": 242.5,
    "s": 75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61918,
    "c": 0.17559,
    "h": 281.8
  },
  "luminance": 0.22253
}

Semantic roles & 50–950 ramp

primary
#7873EB
secondary
#EDEFCB
accent
#D70ECF
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7873EB

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

Preview Lab → · Contrast checker → · Palette generator →

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