#7871F8#7871F8

#7871F8 is a light, vivid blue. Relative luminance 0.226; OKLCH L 62.4% C 0.195 H 281.5°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7871F8
RGBrgb(120, 113, 248)
HSLhsl(243, 91%, 71%)
HSVhsv(243, 54%, 97%)
CMYKcmyk(51.6%, 54.4%, 0%, 2.7%)
CIE-LABlab(54.64, 38.18, -66.97)
CIE-LCHlch(54.64, 77.09, 299.69°)
OKLaboklab(62.43% 0.0388 -0.1915)
OKLCHoklch(62.43% 0.195 281.5)
XYZxyz(30.5889, 22.5789, 91.5351)
Luminance0.2258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871F8 #F1F871
analogous
#71ADF8 #7871F8 #BB71F8
triadic
#7871F8 #F87871 #71F878
tetradic
#7871F8 #F871AD #F1F871 #71F8BB
square
#7871F8 #F871AD #F1F871 #71F8BB
split-complementary
#7871F8 #F8BB71 #ADF871
monochromatic
#160BE3 #4137F5 #7871F8 #AFABFB #E3E2FE

Accessibility & contrast

On white

3.81
#7871F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7871F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871F8
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871F8#FFFFFF#000000##000000
##7871F81.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A88FD
Deuteranopia (green-blind)
#007EF5
Tritanopia (blue-blind)
#4390AA
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7871f8;
/* rgb */ color: rgb(120, 113, 248);
/* oklch */ color: oklch(62.4% 0.195 281.5);
Tailwind
colors: {
  custom: {
    50: '#a89afb',
    500: '#7871f8',
    950: '#000000',
  },
}
SCSS
$custom: #7871f8;
$custom-light: #a89afb;
$custom-dark: #000000;
JSON
{
  "hex": "#7871f8",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 243.111,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.62435,
    "c": 0.1954,
    "h": 281.5
  },
  "luminance": 0.22581
}

Semantic roles & 50–950 ramp

primary
#7871F8
secondary
#F3F5D0
accent
#E600DA
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7871F8

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

Preview Lab → · Contrast checker → · Palette generator →

#7871F8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva