#7856EB#7856EB

#7856EB is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.1% C 0.213 H 288.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7856EB
RGBrgb(120, 86, 235)
HSLhsl(254, 79%, 63%)
HSVhsv(254, 63%, 92%)
CMYKcmyk(48.9%, 63.4%, 0%, 7.8%)
CIE-LABlab(47.81, 49.80, -70.77)
CIE-LCHlch(47.81, 86.53, 305.13°)
OKLaboklab(57.14% 0.0667 -0.2028)
OKLCHoklch(57.14% 0.213 288.2)
XYZxyz(26.0646, 16.6457, 80.4207)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856EB #C9EB56
analogous
#567FEB #7856EB #C256EB
triadic
#7856EB #EB7856 #56EB78
tetradic
#7856EB #EB567F #C9EB56 #56EBC2
square
#7856EB #EB567F #C9EB56 #56EBC2
split-complementary
#7856EB #EBC256 #7FEB56
monochromatic
#3915B2 #4C1FE5 #7856EB #A48DF1 #CFC3F8

Accessibility & contrast

On white

4.85
#7856EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7856EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856EB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856EB#FFFFFF#000000##FFFFFF
##7856EB1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#507A99
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7856eb;
/* rgb */ color: rgb(120, 86, 235);
/* oklch */ color: oklch(57.1% 0.213 288.2);
Tailwind
colors: {
  custom: {
    50: '#a887f2',
    500: '#7856eb',
    950: '#000000',
  },
}
SCSS
$custom: #7856eb;
$custom-light: #a887f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7856eb",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 253.691,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57136,
    "c": 0.21346,
    "h": 288.2
  },
  "luminance": 0.16647
}

Semantic roles & 50–950 ramp

primary
#7856EB
secondary
#DDE9B4
accent
#DB0AAB
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7856EB

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

Preview Lab → · Contrast checker → · Palette generator →

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