#7871CA#7871CA

#7871CA is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.5% C 0.133 H 285.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#7871CA
RGBrgb(120, 113, 202)
HSLhsl(245, 46%, 62%)
HSVhsv(245, 44%, 79%)
CMYKcmyk(40.6%, 44.1%, 0%, 20.8%)
CIE-LABlab(51.91, 24.65, -45.46)
CIE-LCHlch(51.91, 51.71, 298.47°)
OKLaboklab(59.51% 0.0348 -0.1284)
OKLCHoklch(59.51% 0.133 285.2)
XYZxyz(24.3085, 20.0667, 58.4581)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871CA #C3CA71
analogous
#7197CA #7871CA #A571CA
triadic
#7871CA #CA7871 #71CA78
tetradic
#7871CA #CA7197 #C3CA71 #71CAA5
square
#7871CA #CA7197 #C3CA71 #71CAA5
split-complementary
#7871CA #CAA571 #97CA71
monochromatic
#3B348C #4E45B9 #7871CA #A29EDB #CDCAEB

Accessibility & contrast

On white

4.19
#7871CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#7871CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871CA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871CA#FFFFFF#000000##000000
##7871CA1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#517ECD
Deuteranopia (green-blind)
#4E79C8
Tritanopia (blue-blind)
#608394
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7871ca;
/* rgb */ color: rgb(120, 113, 202);
/* oklch */ color: oklch(59.5% 0.133 285.2);
Tailwind
colors: {
  custom: {
    50: '#a399da',
    500: '#7871ca',
    950: '#000000',
  },
}
SCSS
$custom: #7871ca;
$custom-light: #a399da;
$custom-dark: #000000;
JSON
{
  "hex": "#7871ca",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 244.719,
    "s": 45.641,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59514,
    "c": 0.133,
    "h": 285.2
  },
  "luminance": 0.20068
}

Semantic roles & 50–950 ramp

primary
#7871CA
secondary
#D9DCBB
accent
#B92DAE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7871CA

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

Preview Lab → · Contrast checker → · Palette generator →

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