#7856EA#7856EA

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

Color values

HEX#7856EA
RGBrgb(120, 86, 234)
HSLhsl(254, 78%, 63%)
HSVhsv(254, 63%, 92%)
CMYKcmyk(48.7%, 63.2%, 0%, 8.2%)
CIE-LABlab(47.74, 49.52, -70.33)
CIE-LCHlch(47.74, 86.01, 305.15°)
OKLaboklab(57.06% 0.0668 -0.2015)
OKLCHoklch(57.06% 0.212 288.3)
XYZxyz(25.9205, 16.5880, 79.6620)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856EA #C8EA56
analogous
#567EEA #7856EA #C256EA
triadic
#7856EA #EA7856 #56EA78
tetradic
#7856EA #EA567E #C8EA56 #56EAC2
square
#7856EA #EA567E #C8EA56 #56EAC2
split-complementary
#7856EA #EAC256 #7EEA56
monochromatic
#3916B0 #4D20E3 #7856EA #A38CF1 #CFC3F8

Accessibility & contrast

On white

4.86
#7856EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7856EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856EA
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856EA#FFFFFF#000000##FFFFFF
##7856EA1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#006DE7
Tritanopia (blue-blind)
#517A98
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7856ea;
/* rgb */ color: rgb(120, 86, 234);
/* oklch */ color: oklch(57.1% 0.212 288.3);
Tailwind
colors: {
  custom: {
    50: '#a887f2',
    500: '#7856ea',
    950: '#000000',
  },
}
SCSS
$custom: #7856ea;
$custom-light: #a887f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7856ea",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 253.784,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.5706,
    "c": 0.21226,
    "h": 288.3
  },
  "luminance": 0.16589
}

Semantic roles & 50–950 ramp

primary
#7856EA
secondary
#DCE9B3
accent
#DA0BAB
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7856EA

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

Preview Lab → · Contrast checker → · Palette generator →

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