#7856CE#7856CE

#7856CE is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.0% C 0.178 H 292.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7856CE
RGBrgb(120, 86, 206)
HSLhsl(257, 55%, 57%)
HSVhsv(257, 58%, 81%)
CMYKcmyk(41.7%, 58.3%, 0%, 19.2%)
CIE-LABlab(45.78, 41.69, -57.57)
CIE-LCHlch(45.78, 71.08, 305.91°)
OKLaboklab(55.01% 0.0685 -0.164)
OKLCHoklch(55.01% 0.178 292.7)
XYZxyz(22.2111, 15.1043, 60.1257)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856CE #ACCE56
analogous
#5670CE #7856CE #B456CE
triadic
#7856CE #CE7856 #56CE78
tetradic
#7856CE #CE5670 #ACCE56 #56CEB4
square
#7856CE #CE5670 #ACCE56 #56CEB4
split-complementary
#7856CE #CEB456 #70CE56
monochromatic
#412683 #5834B3 #7856CE #9E85DC #C4B5EA

Accessibility & contrast

On white

5.22
#7856CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7856CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856CE
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856CE#FFFFFF#000000##FFFFFF
##7856CE1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED2
Deuteranopia (green-blind)
#176ACB
Tritanopia (blue-blind)
#61708A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7856ce;
/* rgb */ color: rgb(120, 86, 206);
/* oklch */ color: oklch(55.0% 0.178 292.7);
Tailwind
colors: {
  custom: {
    50: '#a487de',
    500: '#7856ce',
    950: '#000000',
  },
}
SCSS
$custom: #7856ce;
$custom-light: #a487de;
$custom-dark: #000000;
JSON
{
  "hex": "#7856ce",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 206
  },
  "hsl": {
    "h": 257,
    "s": 55.046,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5501,
    "c": 0.17767,
    "h": 292.7
  },
  "luminance": 0.15105
}

Semantic roles & 50–950 ramp

primary
#7856CE
secondary
#CAD8A8
accent
#DE49B4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7856CE

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

Preview Lab → · Contrast checker → · Palette generator →

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