#7871CB#7871CB

#7871CB is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.6% C 0.134 H 285.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7871CB
RGBrgb(120, 113, 203)
HSLhsl(245, 46%, 62%)
HSVhsv(245, 44%, 80%)
CMYKcmyk(40.9%, 44.3%, 0%, 20.4%)
CIE-LABlab(51.97, 24.94, -45.95)
CIE-LCHlch(51.97, 52.28, 298.49°)
OKLaboklab(59.57% 0.035 -0.1298)
OKLCHoklch(59.57% 0.134 285.1)
XYZxyz(24.4273, 20.1142, 59.0837)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871CB #C4CB71
analogous
#7197CB #7871CB #A571CB
triadic
#7871CB #CB7871 #71CB78
tetradic
#7871CB #CB7197 #C4CB71 #71CBA5
square
#7871CB #CB7197 #C4CB71 #71CBA5
split-complementary
#7871CB #CBA571 #97CB71
monochromatic
#3B348E #4D44BB #7871CB #A39EDB #CDCBEC

Accessibility & contrast

On white

4.18
#7871CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7871CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871CB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871CB#FFFFFF#000000##000000
##7871CB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#507FCE
Deuteranopia (green-blind)
#4D79C9
Tritanopia (blue-blind)
#608394
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7871cb;
/* rgb */ color: rgb(120, 113, 203);
/* oklch */ color: oklch(59.6% 0.134 285.1);
Tailwind
colors: {
  custom: {
    50: '#a399db',
    500: '#7871cb',
    950: '#000000',
  },
}
SCSS
$custom: #7871cb;
$custom-light: #a399db;
$custom-dark: #000000;
JSON
{
  "hex": "#7871cb",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 244.667,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59572,
    "c": 0.13441,
    "h": 285.1
  },
  "luminance": 0.20115
}

Semantic roles & 50–950 ramp

primary
#7871CB
secondary
#DADCBB
accent
#BA2CAF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7871CB

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

Preview Lab → · Contrast checker → · Palette generator →

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