#7871CD#7871CD

#7871CD is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.7% C 0.137 H 284.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7871CD
RGBrgb(120, 113, 205)
HSLhsl(245, 48%, 62%)
HSVhsv(245, 45%, 80%)
CMYKcmyk(41.5%, 44.9%, 0%, 19.6%)
CIE-LABlab(52.07, 25.51, -46.91)
CIE-LCHlch(52.07, 53.40, 298.53°)
OKLaboklab(59.69% 0.0353 -0.1326)
OKLCHoklch(59.69% 0.137 284.9)
XYZxyz(24.6672, 20.2102, 60.3470)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7871CD #C6CD71
analogous
#7198CD #7871CD #A671CD
triadic
#7871CD #CD7871 #71CD78
tetradic
#7871CD #CD7198 #C6CD71 #71CDA6
square
#7871CD #CD7198 #C6CD71 #71CDA6
split-complementary
#7871CD #CDA671 #98CD71
monochromatic
#3A3391 #4D44BD #7871CD #A39EDD #CECCED

Accessibility & contrast

On white

4.16
#7871CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#7871CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7871CD
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7871CD#FFFFFF#000000##000000
##7871CD1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7FD0
Deuteranopia (green-blind)
#4C79CB
Tritanopia (blue-blind)
#5F8495
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7871cd;
/* rgb */ color: rgb(120, 113, 205);
/* oklch */ color: oklch(59.7% 0.137 284.9);
Tailwind
colors: {
  custom: {
    50: '#a399dd',
    500: '#7871cd',
    950: '#000000',
  },
}
SCSS
$custom: #7871cd;
$custom-light: #a399dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7871cd",
  "rgb": {
    "r": 120,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 244.565,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59689,
    "c": 0.13722,
    "h": 284.9
  },
  "luminance": 0.20211
}

Semantic roles & 50–950 ramp

primary
#7871CD
secondary
#DBDEBC
accent
#BB2AB0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7871CD

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

Preview Lab → · Contrast checker → · Palette generator →

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