#7856BE#7856BE

#7856BE is a mid, vivid violet. Relative luminance 0.144; OKLCH L 53.9% C 0.157 H 295.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7856BE
RGBrgb(120, 86, 190)
HSLhsl(260, 44%, 54%)
HSVhsv(260, 55%, 75%)
CMYKcmyk(36.8%, 54.7%, 0%, 25.5%)
CIE-LABlab(44.75, 37.33, -49.97)
CIE-LCHlch(44.75, 62.37, 306.76°)
OKLaboklab(53.93% 0.0683 -0.1416)
OKLCHoklch(53.93% 0.157 295.8)
XYZxyz(20.3654, 14.3660, 50.4052)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856BE #9CBE56
analogous
#5668BE #7856BE #AC56BE
triadic
#7856BE #BE7856 #56BE78
tetradic
#7856BE #BE5668 #9CBE56 #56BEAC
square
#7856BE #BE5668 #9CBE56 #56BEAC
split-complementary
#7856BE #BEAC56 #68BE56
monochromatic
#412B6F #5B3C9B #7856BE #9B82CF #BFAEE0

Accessibility & contrast

On white

5.42
#7856BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7856BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856BE
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856BE#FFFFFF#000000##FFFFFF
##7856BE1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286BC2
Deuteranopia (green-blind)
#3268BC
Tritanopia (blue-blind)
#676B82
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7856be;
/* rgb */ color: rgb(120, 86, 190);
/* oklch */ color: oklch(53.9% 0.157 295.8);
Tailwind
colors: {
  custom: {
    50: '#a387d2',
    500: '#7856be',
    950: '#000000',
  },
}
SCSS
$custom: #7856be;
$custom-light: #a387d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7856be",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 190
  },
  "hsl": {
    "h": 259.615,
    "s": 44.444,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53929,
    "c": 0.15725,
    "h": 295.8
  },
  "luminance": 0.14366
}

Semantic roles & 50–950 ramp

primary
#7856BE
secondary
#C0CEA2
accent
#D454AA
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7856BE

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

Preview Lab → · Contrast checker → · Palette generator →

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