#7856C8#7856C8

#7856C8 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.6% C 0.170 H 293.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7856C8
RGBrgb(120, 86, 200)
HSLhsl(258, 51%, 56%)
HSVhsv(258, 57%, 78%)
CMYKcmyk(40%, 57%, 0%, 21.6%)
CIE-LABlab(45.38, 40.05, -54.75)
CIE-LCHlch(45.38, 67.83, 306.18°)
OKLaboklab(54.6% 0.0685 -0.1557)
OKLCHoklch(54.6% 0.17 293.8)
XYZxyz(21.4961, 14.8183, 56.3600)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856C8 #A6C856
analogous
#566DC8 #7856C8 #B156C8
triadic
#7856C8 #C87856 #56C878
tetradic
#7856C8 #C8566D #A6C856 #56C8B1
square
#7856C8 #C8566D #A6C856 #56C8B1
split-complementary
#7856C8 #C8B156 #6DC856
monochromatic
#41287B #5937AA #7856C8 #9D84D7 #C2B2E6

Accessibility & contrast

On white

5.30
#7856C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7856C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856C8
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856C8#FFFFFF#000000##FFFFFF
##7856C81.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166DCC
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#636E87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7856c8;
/* rgb */ color: rgb(120, 86, 200);
/* oklch */ color: oklch(54.6% 0.170 293.8);
Tailwind
colors: {
  custom: {
    50: '#a487d9',
    500: '#7856c8',
    950: '#000000',
  },
}
SCSS
$custom: #7856c8;
$custom-light: #a487d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7856c8",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 257.895,
    "s": 50.893,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54597,
    "c": 0.17008,
    "h": 293.8
  },
  "luminance": 0.14819
}

Semantic roles & 50–950 ramp

primary
#7856C8
secondary
#C6D4A5
accent
#DA4DB0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7856C8

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

Preview Lab → · Contrast checker → · Palette generator →

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