#7873BA#7873BA

#7873BA is a mid, moderate blue. Relative luminance 0.198; OKLCH L 59.0% C 0.107 H 285.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7873BA
RGBrgb(120, 115, 186)
HSLhsl(244, 34%, 59%)
HSVhsv(244, 38%, 73%)
CMYKcmyk(35.5%, 38.2%, 0%, 27.1%)
CIE-LABlab(51.61, 18.97, -36.77)
CIE-LCHlch(51.61, 41.37, 297.29°)
OKLaboklab(59.02% 0.0292 -0.103)
OKLCHoklch(59.02% 0.107 285.8)
XYZxyz(22.7370, 19.7990, 49.0685)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7873BA #B5BA73
analogous
#7392BA #7873BA #9C73BA
triadic
#7873BA #BA7873 #73BA78
tetradic
#7873BA #BA7392 #B5BA73 #73BA9C
square
#7873BA #BA7392 #B5BA73 #73BA9C
split-complementary
#7873BA #BA9C73 #92BA73
monochromatic
#3F3B78 #554FA1 #7873BA #A09CCE #C7C5E2

Accessibility & contrast

On white

4.23
#7873BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7873BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7873BA
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7873BA#FFFFFF#000000##000000
##7873BA1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D7DBD
Deuteranopia (green-blind)
#5B79B8
Tritanopia (blue-blind)
#67808E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7873ba;
/* rgb */ color: rgb(120, 115, 186);
/* oklch */ color: oklch(59.0% 0.107 285.8);
Tailwind
colors: {
  custom: {
    50: '#a19bcf',
    500: '#7873ba',
    950: '#000000',
  },
}
SCSS
$custom: #7873ba;
$custom-light: #a19bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7873ba",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 186
  },
  "hsl": {
    "h": 244.225,
    "s": 33.971,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59018,
    "c": 0.1071,
    "h": 285.8
  },
  "luminance": 0.198
}

Semantic roles & 50–950 ramp

primary
#7873BA
secondary
#D0D2B6
accent
#CA5EC2
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7873BA

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

Preview Lab → · Contrast checker → · Palette generator →

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