#7871FA#7871FA

#7871FA is a light, vivid blue. Relative luminance 0.227; OKLCH L 62.6% C 0.198 H 281.3°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7871FA
RGBrgb(120, 113, 250)
HSLhsl(243, 93%, 71%)
HSVhsv(243, 55%, 98%)
CMYKcmyk(52%, 54.8%, 0%, 2%)
CIE-LABlab(54.77, 38.78, -67.87)
CIE-LCHlch(54.77, 78.17, 299.74°)
OKLaboklab(62.57% 0.0389 -0.1942)
OKLCHoklch(62.57% 0.198 281.3)
XYZxyz(30.9009, 22.7036, 93.1779)
Luminance0.2271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871FA #F3FA71
analogous
#71AEFA #7871FA #BC71FA
triadic
#7871FA #FA7871 #71FA78
tetradic
#7871FA #FA71AE #F3FA71 #71FABC
square
#7871FA #FA71AE #F3FA71 #71FABC
split-complementary
#7871FA #FABC71 #AEFA71
monochromatic
#1408E8 #4036F8 #7871FA #B0ACFC #E3E1FE

Accessibility & contrast

On white

3.79
#7871FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#7871FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871FA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871FA#FFFFFF#000000##000000
##7871FA1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1388FF
Deuteranopia (green-blind)
#007EF7
Tritanopia (blue-blind)
#4190AB
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7871fa;
/* rgb */ color: rgb(120, 113, 250);
/* oklch */ color: oklch(62.6% 0.198 281.3);
Tailwind
colors: {
  custom: {
    50: '#a89afd',
    500: '#7871fa',
    950: '#000000',
  },
}
SCSS
$custom: #7871fa;
$custom-light: #a89afd;
$custom-dark: #000000;
JSON
{
  "hex": "#7871fa",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 243.066,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.62573,
    "c": 0.19801,
    "h": 281.3
  },
  "luminance": 0.22705
}

Semantic roles & 50–950 ramp

primary
#7871FA
secondary
#F4F5D1
accent
#E600DA
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #7871FA

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

Preview Lab → · Contrast checker → · Palette generator →

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