#7871CF#7871CF

#7871CF is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.8% C 0.140 H 284.7°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#7871CF
RGBrgb(120, 113, 207)
HSLhsl(244, 49%, 63%)
HSVhsv(244, 45%, 81%)
CMYKcmyk(42%, 45.4%, 0%, 18.8%)
CIE-LABlab(52.18, 26.08, -47.88)
CIE-LCHlch(52.18, 54.52, 298.58°)
OKLaboklab(59.81% 0.0356 -0.1354)
OKLCHoklch(59.81% 0.14 284.7)
XYZxyz(24.9101, 20.3073, 61.6266)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871CF #C8CF71
analogous
#7199CF #7871CF #A771CF
triadic
#7871CF #CF7871 #71CF78
tetradic
#7871CF #CF7199 #C8CF71 #71CFA7
square
#7871CF #CF7199 #C8CF71 #71CFA7
split-complementary
#7871CF #CFA771 #99CF71
monochromatic
#393294 #4D43C0 #7871CF #A39FDE #CFCCEE

Accessibility & contrast

On white

4.15
#7871CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#7871CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871CF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871CF#FFFFFF#000000##000000
##7871CF1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7FD2
Deuteranopia (green-blind)
#4A7ACD
Tritanopia (blue-blind)
#5E8496
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7871cf;
/* rgb */ color: rgb(120, 113, 207);
/* oklch */ color: oklch(59.8% 0.140 284.7);
Tailwind
colors: {
  custom: {
    50: '#a399de',
    500: '#7871cf',
    950: '#000000',
  },
}
SCSS
$custom: #7871cf;
$custom-light: #a399de;
$custom-dark: #000000;
JSON
{
  "hex": "#7871cf",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 244.468,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59807,
    "c": 0.14003,
    "h": 284.7
  },
  "luminance": 0.20308
}

Semantic roles & 50–950 ramp

primary
#7871CF
secondary
#DCDFBD
accent
#BD29B2
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7871CF

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

Preview Lab → · Contrast checker → · Palette generator →

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