#7856EF#7856EF

#7856EF is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.4% C 0.218 H 287.7°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7856EF
RGBrgb(120, 86, 239)
HSLhsl(253, 83%, 64%)
HSVhsv(253, 64%, 94%)
CMYKcmyk(49.8%, 64%, 0%, 6.3%)
CIE-LABlab(48.11, 50.93, -72.53)
CIE-LCHlch(48.11, 88.63, 305.07°)
OKLaboklab(57.45% 0.0663 -0.208)
OKLCHoklch(57.45% 0.218 287.7)
XYZxyz(26.6489, 16.8794, 83.4985)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856EF #CDEF56
analogous
#5680EF #7856EF #C456EF
triadic
#7856EF #EF7856 #56EF78
tetradic
#7856EF #EF5680 #CDEF56 #56EFC4
square
#7856EF #EF5680 #CDEF56 #56EFC4
split-complementary
#7856EF #EFC456 #80EF56
monochromatic
#3712B9 #4B1EEA #7856EF #A58EF4 #D1C6FA

Accessibility & contrast

On white

4.80
#7856EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#7856EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856EF
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856EF#FFFFFF#000000##FFFFFF
##7856EF1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#006EEC
Tritanopia (blue-blind)
#4D7B9B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7856ef;
/* rgb */ color: rgb(120, 86, 239);
/* oklch */ color: oklch(57.4% 0.218 287.7);
Tailwind
colors: {
  custom: {
    50: '#a887f5',
    500: '#7856ef',
    950: '#000000',
  },
}
SCSS
$custom: #7856ef;
$custom-light: #a887f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7856ef",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 253.333,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57445,
    "c": 0.21828,
    "h": 287.7
  },
  "luminance": 0.16881
}

Semantic roles & 50–950 ramp

primary
#7856EF
secondary
#DFEBB5
accent
#DF06AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7856EF

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

Preview Lab → · Contrast checker → · Palette generator →

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