#7856EC#7856EC

#7856EC is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.2% C 0.215 H 288.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7856EC
RGBrgb(120, 86, 236)
HSLhsl(254, 80%, 63%)
HSVhsv(254, 64%, 93%)
CMYKcmyk(49.2%, 63.6%, 0%, 7.5%)
CIE-LABlab(47.88, 50.08, -71.21)
CIE-LCHlch(47.88, 87.06, 305.12°)
OKLaboklab(57.21% 0.0666 -0.2041)
OKLCHoklch(57.21% 0.215 288.1)
XYZxyz(26.2094, 16.7036, 81.1837)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856EC #CAEC56
analogous
#567FEC #7856EC #C356EC
triadic
#7856EC #EC7856 #56EC78
tetradic
#7856EC #EC567F #CAEC56 #56ECC3
square
#7856EC #EC567F #CAEC56 #56ECC3
split-complementary
#7856EC #ECC356 #7FEC56
monochromatic
#3814B3 #4C1FE6 #7856EC #A48DF2 #D0C4F8

Accessibility & contrast

On white

4.84
#7856EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7856EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856EC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856EC#FFFFFF#000000##FFFFFF
##7856EC1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#006EE9
Tritanopia (blue-blind)
#4F7A99
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7856ec;
/* rgb */ color: rgb(120, 86, 236);
/* oklch */ color: oklch(57.2% 0.215 288.1);
Tailwind
colors: {
  custom: {
    50: '#a887f3',
    500: '#7856ec',
    950: '#000000',
  },
}
SCSS
$custom: #7856ec;
$custom-light: #a887f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7856ec",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 253.6,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57213,
    "c": 0.21468,
    "h": 288.1
  },
  "luminance": 0.16705
}

Semantic roles & 50–950 ramp

primary
#7856EC
secondary
#DEEAB4
accent
#DC09AC
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7856EC

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

Preview Lab → · Contrast checker → · Palette generator →

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