#7873CA#7873CA

#7873CA is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.9% C 0.130 H 284.4°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7873CA
RGBrgb(120, 115, 202)
HSLhsl(243, 45%, 62%)
HSVhsv(243, 43%, 79%)
CMYKcmyk(40.6%, 43.1%, 0%, 20.8%)
CIE-LABlab(52.42, 23.45, -44.66)
CIE-LCHlch(52.42, 50.44, 297.71°)
OKLaboklab(59.9% 0.0323 -0.126)
OKLCHoklch(59.9% 0.13 284.4)
XYZxyz(24.5341, 20.5179, 58.5333)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7873CA #C5CA73
analogous
#739ACA #7873CA #A373CA
triadic
#7873CA #CA7873 #73CA78
tetradic
#7873CA #CA739A #C5CA73 #73CAA3
square
#7873CA #CA739A #C5CA73 #73CAA3
split-complementary
#7873CA #CAA373 #9ACA73
monochromatic
#3A358D #4D47B9 #7873CA #A39FDB #CECCEC

Accessibility & contrast

On white

4.11
#7873CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#7873CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7873CA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7873CA#FFFFFF#000000##000000
##7873CA1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5480CD
Deuteranopia (green-blind)
#517AC8
Tritanopia (blue-blind)
#608495
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7873ca;
/* rgb */ color: rgb(120, 115, 202);
/* oklch */ color: oklch(59.9% 0.130 284.4);
Tailwind
colors: {
  custom: {
    50: '#a39bda',
    500: '#7873ca',
    950: '#000000',
  },
}
SCSS
$custom: #7873ca;
$custom-light: #a39bda;
$custom-dark: #000000;
JSON
{
  "hex": "#7873ca",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 202
  },
  "hsl": {
    "h": 243.448,
    "s": 45.078,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59898,
    "c": 0.13007,
    "h": 284.4
  },
  "luminance": 0.20519
}

Semantic roles & 50–950 ramp

primary
#7873CA
secondary
#DBDCBC
accent
#B82DB0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7873CA

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

Preview Lab → · Contrast checker → · Palette generator →

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