#7871FD#7871FD

#7871FD is a light, highly saturated blue. Relative luminance 0.229; OKLCH L 62.8% C 0.202 H 281.1°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7871FD
RGBrgb(120, 113, 253)
HSLhsl(243, 97%, 72%)
HSVhsv(243, 55%, 99%)
CMYKcmyk(52.6%, 55.3%, 0%, 0.8%)
CIE-LABlab(54.96, 39.68, -69.21)
CIE-LCHlch(54.96, 79.78, 299.83°)
OKLaboklab(62.78% 0.0389 -0.1981)
OKLCHoklch(62.78% 0.202 281.1)
XYZxyz(31.3750, 22.8933, 95.6750)
Luminance0.2289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871FD #F6FD71
analogous
#71B0FD #7871FD #BE71FD
triadic
#7871FD #FD7871 #71FD78
tetradic
#7871FD #FD71B0 #F6FD71 #71FDBE
square
#7871FD #FD71B0 #F6FD71 #71FDBE
split-complementary
#7871FD #FDBE71 #B0FD71
monochromatic
#0F03F0 #3F35FC #7871FD #B1ADFE #E2E1FF

Accessibility & contrast

On white

3.76
#7871FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7871FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871FD
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871FD#FFFFFF#000000##000000
##7871FD1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0489FF
Deuteranopia (green-blind)
#007EFA
Tritanopia (blue-blind)
#3E91AC
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7871fd;
/* rgb */ color: rgb(120, 113, 253);
/* oklch */ color: oklch(62.8% 0.202 281.1);
Tailwind
colors: {
  custom: {
    50: '#a89aff',
    500: '#7871fd',
    950: '#000000',
  },
}
SCSS
$custom: #7871fd;
$custom-light: #a89aff;
$custom-dark: #000000;
JSON
{
  "hex": "#7871fd",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 243,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.62782,
    "c": 0.20189,
    "h": 281.1
  },
  "luminance": 0.22895
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7871FD

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

Preview Lab → · Contrast checker → · Palette generator →

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