#7856BC#7856BC

#7856BC is a mid, vivid violet. Relative luminance 0.143; OKLCH L 53.8% C 0.155 H 296.2°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7856BC
RGBrgb(120, 86, 188)
HSLhsl(260, 43%, 54%)
HSVhsv(260, 54%, 74%)
CMYKcmyk(36.2%, 54.3%, 0%, 26.3%)
CIE-LABlab(44.63, 36.79, -49.00)
CIE-LCHlch(44.63, 61.27, 306.90°)
OKLaboklab(53.8% 0.0683 -0.1388)
OKLCHoklch(53.8% 0.155 296.2)
XYZxyz(20.1483, 14.2792, 49.2618)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856BC #9ABC56
analogous
#5667BC #7856BC #AB56BC
triadic
#7856BC #BC7856 #56BC78
tetradic
#7856BC #BC5667 #9ABC56 #56BCAB
square
#7856BC #BC5667 #9ABC56 #56BCAB
split-complementary
#7856BC #BCAB56 #67BC56
monochromatic
#412B6D #5B3C98 #7856BC #9B82CD #BEAEDF

Accessibility & contrast

On white

5.45
#7856BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7856BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856BC
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856BC#FFFFFF#000000##FFFFFF
##7856BC1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6ABF
Deuteranopia (green-blind)
#3468BA
Tritanopia (blue-blind)
#686B81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7856bc;
/* rgb */ color: rgb(120, 86, 188);
/* oklch */ color: oklch(53.8% 0.155 296.2);
Tailwind
colors: {
  custom: {
    50: '#a386d1',
    500: '#7856bc',
    950: '#000000',
  },
}
SCSS
$custom: #7856bc;
$custom-light: #a386d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7856bc",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 188
  },
  "hsl": {
    "h": 260,
    "s": 43.22,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53799,
    "c": 0.15466,
    "h": 296.2
  },
  "luminance": 0.14279
}

Semantic roles & 50–950 ramp

primary
#7856BC
secondary
#BECDA1
accent
#D355A9
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7856BC

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

Preview Lab → · Contrast checker → · Palette generator →

#7856BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva