#7873EA#7873EA

#7873EA is a mid, vivid blue. Relative luminance 0.222; OKLCH L 61.9% C 0.174 H 281.9°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7873EA
RGBrgb(120, 115, 234)
HSLhsl(243, 74%, 68%)
HSVhsv(243, 51%, 92%)
CMYKcmyk(48.7%, 50.9%, 0%, 8.2%)
CIE-LABlab(54.23, 32.81, -59.83)
CIE-LCHlch(54.23, 68.23, 298.74°)
OKLaboklab(61.85% 0.036 -0.1705)
OKLCHoklch(61.85% 0.174 281.9)
XYZxyz(28.7233, 22.1935, 80.5962)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7873EA #E5EA73
analogous
#73A9EA #7873EA #B373EA
triadic
#7873EA #EA7873 #73EA78
tetradic
#7873EA #EA73A9 #E5EA73 #73EAB3
square
#7873EA #EA73A9 #E5EA73 #73EAB3
split-complementary
#7873EA #EAB373 #A9EA73
monochromatic
#251EC5 #453EE2 #7873EA #ABA8F2 #DFDDFA

Accessibility & contrast

On white

3.86
#7873EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#7873EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7873EA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7873EA#FFFFFF#000000##000000
##7873EA1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3986EE
Deuteranopia (green-blind)
#2F7EE7
Tritanopia (blue-blind)
#4E8DA4
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7873ea;
/* rgb */ color: rgb(120, 115, 234);
/* oklch */ color: oklch(61.9% 0.174 281.9);
Tailwind
colors: {
  custom: {
    50: '#a69bf1',
    500: '#7873ea',
    950: '#000000',
  },
}
SCSS
$custom: #7873ea;
$custom-light: #a69bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#7873ea",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 234
  },
  "hsl": {
    "h": 242.521,
    "s": 73.913,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61853,
    "c": 0.17425,
    "h": 281.9
  },
  "luminance": 0.22195
}

Semantic roles & 50–950 ramp

primary
#7873EA
secondary
#EDEECA
accent
#D60FCE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7873EA

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

Preview Lab → · Contrast checker → · Palette generator →

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