#7871F4#7871F4

#7871F4 is a light, vivid blue. Relative luminance 0.223; OKLCH L 62.2% C 0.190 H 281.7°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7871F4
RGBrgb(120, 113, 244)
HSLhsl(243, 86%, 70%)
HSVhsv(243, 54%, 96%)
CMYKcmyk(50.8%, 53.7%, 0%, 4.3%)
CIE-LABlab(54.38, 36.98, -65.17)
CIE-LCHlch(54.38, 74.93, 299.57°)
OKLaboklab(62.16% 0.0387 -0.1862)
OKLCHoklch(62.16% 0.19 281.7)
XYZxyz(29.9750, 22.3333, 88.3017)
Luminance0.2233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871F4 #EDF471
analogous
#71ACF4 #7871F4 #B971F4
triadic
#7871F4 #F47871 #71F478
tetradic
#7871F4 #F471AC #EDF471 #71F4B9
square
#7871F4 #F471AC #EDF471 #71F4B9
split-complementary
#7871F4 #F4B971 #ACF471
monochromatic
#1C11DA #4238F0 #7871F4 #AEAAF8 #E4E3FD

Accessibility & contrast

On white

3.84
#7871F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#7871F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871F4
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871F4#FFFFFF#000000##000000
##7871F41.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2387F9
Deuteranopia (green-blind)
#0F7DF1
Tritanopia (blue-blind)
#468EA8
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7871f4;
/* rgb */ color: rgb(120, 113, 244);
/* oklch */ color: oklch(62.2% 0.190 281.7);
Tailwind
colors: {
  custom: {
    50: '#a79af8',
    500: '#7871f4',
    950: '#000000',
  },
}
SCSS
$custom: #7871f4;
$custom-light: #a79af8;
$custom-dark: #000000;
JSON
{
  "hex": "#7871f4",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 244
  },
  "hsl": {
    "h": 243.206,
    "s": 85.621,
    "l": 70
  },
  "oklch": {
    "l": 0.62162,
    "c": 0.19018,
    "h": 281.7
  },
  "luminance": 0.22335
}

Semantic roles & 50–950 ramp

primary
#7871F4
secondary
#F1F3CE
accent
#E203D6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7871F4

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

Preview Lab → · Contrast checker → · Palette generator →

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