#7871D0#7871D0

#7871D0 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.9% C 0.141 H 284.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7871D0
RGBrgb(120, 113, 208)
HSLhsl(244, 50%, 63%)
HSVhsv(244, 46%, 82%)
CMYKcmyk(42.3%, 45.7%, 0%, 18.4%)
CIE-LABlab(52.24, 26.37, -48.36)
CIE-LCHlch(52.24, 55.08, 298.60°)
OKLaboklab(59.87% 0.0357 -0.1368)
OKLCHoklch(59.87% 0.141 284.6)
XYZxyz(25.0327, 20.3564, 62.2725)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871D0 #C9D071
analogous
#7199D0 #7871D0 #A771D0
triadic
#7871D0 #D07871 #71D078
tetradic
#7871D0 #D07199 #C9D071 #71D0A7
square
#7871D0 #D07199 #C9D071 #71D0A7
split-complementary
#7871D0 #D0A771 #99D071
monochromatic
#393195 #4C43C1 #7871D0 #A49FDF #CFCDEE

Accessibility & contrast

On white

4.14
#7871D0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#7871D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871D0
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871D0#FFFFFF#000000##000000
##7871D01.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7FD3
Deuteranopia (green-blind)
#497ACE
Tritanopia (blue-blind)
#5D8496
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7871d0;
/* rgb */ color: rgb(120, 113, 208);
/* oklch */ color: oklch(59.9% 0.141 284.6);
Tailwind
colors: {
  custom: {
    50: '#a399df',
    500: '#7871d0',
    950: '#000000',
  },
}
SCSS
$custom: #7871d0;
$custom-light: #a399df;
$custom-dark: #000000;
JSON
{
  "hex": "#7871d0",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 208
  },
  "hsl": {
    "h": 244.421,
    "s": 50.265,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59866,
    "c": 0.14143,
    "h": 284.6
  },
  "luminance": 0.20357
}

Semantic roles & 50–950 ramp

primary
#7871D0
secondary
#DDDFBD
accent
#BE28B3
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7871D0

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

Preview Lab → · Contrast checker → · Palette generator →

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