#7871DF#7871DF

#7871DF is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.8% C 0.162 H 283.3°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#7871DF
RGBrgb(120, 113, 223)
HSLhsl(244, 63%, 66%)
HSVhsv(244, 49%, 87%)
CMYKcmyk(46.2%, 49.3%, 0%, 12.5%)
CIE-LABlab(53.09, 30.74, -55.49)
CIE-LCHlch(53.09, 63.43, 298.99°)
OKLaboklab(60.79% 0.0374 -0.1577)
OKLCHoklch(60.79% 0.162 283.3)
XYZxyz(26.9662, 21.1298, 72.4553)
Luminance0.2113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871DF #D8DF71
analogous
#71A1DF #7871DF #AF71DF
triadic
#7871DF #DF7871 #71DF78
tetradic
#7871DF #DF71A1 #D8DF71 #71DFAF
square
#7871DF #DF71A1 #D8DF71 #71DFAF
split-complementary
#7871DF #DFAF71 #A1DF71
monochromatic
#3027AE #493FD4 #7871DF #A7A3EA #D7D5F6

Accessibility & contrast

On white

4.02
#7871DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#7871DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871DF
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871DF#FFFFFF#000000##000000
##7871DF1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4082E3
Deuteranopia (green-blind)
#3A7BDD
Tritanopia (blue-blind)
#55889D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7871df;
/* rgb */ color: rgb(120, 113, 223);
/* oklch */ color: oklch(60.8% 0.162 283.3);
Tailwind
colors: {
  custom: {
    50: '#a59ae9',
    500: '#7871df',
    950: '#000000',
  },
}
SCSS
$custom: #7871df;
$custom-light: #a59ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#7871df",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 243.818,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60786,
    "c": 0.16211,
    "h": 283.3
  },
  "luminance": 0.21131
}

Semantic roles & 50–950 ramp

primary
#7871DF
secondary
#E6E8C4
accent
#CB1BC0
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7871DF

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

Preview Lab → · Contrast checker → · Palette generator →

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