#7873F2#7873F2

#7873F2 is a light, vivid blue. Relative luminance 0.227; OKLCH L 62.4% C 0.185 H 281.4°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7873F2
RGBrgb(120, 115, 242)
HSLhsl(242, 83%, 70%)
HSVhsv(242, 52%, 95%)
CMYKcmyk(50.4%, 52.5%, 0%, 5.1%)
CIE-LABlab(54.72, 35.20, -63.50)
CIE-LCHlch(54.72, 72.60, 299.00°)
OKLaboklab(62.38% 0.0365 -0.1813)
OKLCHoklch(62.38% 0.185 281.4)
XYZxyz(29.8986, 22.6637, 86.7863)
Luminance0.2266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7873F2 #EDF273
analogous
#73AEF2 #7873F2 #B773F2
triadic
#7873F2 #F27873 #73F278
tetradic
#7873F2 #F273AE #EDF273 #73F2B7
square
#7873F2 #F273AE #EDF273 #73F2B7
split-complementary
#7873F2 #F2B773 #AEF273
monochromatic
#1C14D7 #423BED #7873F2 #AEABF7 #E4E3FC

Accessibility & contrast

On white

3.80
#7873F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7873F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7873F2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7873F2#FFFFFF#000000##000000
##7873F21.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E88F6
Deuteranopia (green-blind)
#207EEF
Tritanopia (blue-blind)
#488FA8
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7873f2;
/* rgb */ color: rgb(120, 115, 242);
/* oklch */ color: oklch(62.4% 0.185 281.4);
Tailwind
colors: {
  custom: {
    50: '#a79bf7',
    500: '#7873f2',
    950: '#000000',
  },
}
SCSS
$custom: #7873f2;
$custom-light: #a79bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#7873f2",
  "rgb": {
    "r": 120,
    "g": 115,
    "b": 242
  },
  "hsl": {
    "h": 242.362,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.62379,
    "c": 0.18491,
    "h": 281.4
  },
  "luminance": 0.22665
}

Semantic roles & 50–950 ramp

primary
#7873F2
secondary
#F1F2CF
accent
#DF06D7
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7873F2

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

Preview Lab → · Contrast checker → · Palette generator →

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