#7871FC#7871FC

#7871FC is a light, highly saturated blue. Relative luminance 0.228; OKLCH L 62.7% C 0.201 H 281.2°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7871FC
RGBrgb(120, 113, 252)
HSLhsl(243, 96%, 72%)
HSVhsv(243, 55%, 99%)
CMYKcmyk(52.4%, 55.2%, 0%, 1.2%)
CIE-LABlab(54.90, 39.38, -68.77)
CIE-LCHlch(54.90, 79.25, 299.80°)
OKLaboklab(62.71% 0.0389 -0.1968)
OKLCHoklch(62.71% 0.201 281.2)
XYZxyz(31.2161, 22.8297, 94.8383)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871FC #F5FC71
analogous
#71B0FC #7871FC #BE71FC
triadic
#7871FC #FC7871 #71FC78
tetradic
#7871FC #FC71B0 #F5FC71 #71FCBE
square
#7871FC #FC71B0 #F5FC71 #71FCBE
split-complementary
#7871FC #FCBE71 #B0FC71
monochromatic
#1105EE #3F35FB #7871FC #B1ADFD #E3E1FE

Accessibility & contrast

On white

3.77
#7871FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7871FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871FC
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871FC#FFFFFF#000000##000000
##7871FC1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A88FF
Deuteranopia (green-blind)
#007EF9
Tritanopia (blue-blind)
#3F91AC
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7871fc;
/* rgb */ color: rgb(120, 113, 252);
/* oklch */ color: oklch(62.7% 0.201 281.2);
Tailwind
colors: {
  custom: {
    50: '#a89afe',
    500: '#7871fc',
    950: '#000000',
  },
}
SCSS
$custom: #7871fc;
$custom-light: #a89afe;
$custom-dark: #000000;
JSON
{
  "hex": "#7871fc",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 243.022,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.62712,
    "c": 0.2006,
    "h": 281.2
  },
  "luminance": 0.22832
}

Semantic roles & 50–950 ramp

primary
#7871FC
secondary
#F4F6D3
accent
#E600DA
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #7871FC

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

Preview Lab → · Contrast checker → · Palette generator →

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