#7856E8#7856E8

#7856E8 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 56.9% C 0.210 H 288.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7856E8
RGBrgb(120, 86, 232)
HSLhsl(254, 76%, 62%)
HSVhsv(254, 63%, 91%)
CMYKcmyk(48.3%, 62.9%, 0%, 9%)
CIE-LABlab(47.59, 48.95, -69.44)
CIE-LCHlch(47.59, 84.96, 305.18°)
OKLaboklab(56.91% 0.067 -0.1989)
OKLCHoklch(56.91% 0.21 288.6)
XYZxyz(25.6348, 16.4737, 78.1573)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856E8 #C6E856
analogous
#567DE8 #7856E8 #C156E8
triadic
#7856E8 #E87856 #56E878
tetradic
#7856E8 #E8567D #C6E856 #56E8C1
square
#7856E8 #E8567D #C6E856 #56E8C1
split-complementary
#7856E8 #E8C156 #7DE856
monochromatic
#3A17AC #4D20E1 #7856E8 #A38CEF #CEC2F7

Accessibility & contrast

On white

4.89
#7856E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7856E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856E8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856E8#FFFFFF#000000##FFFFFF
##7856E81.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#527997
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7856e8;
/* rgb */ color: rgb(120, 86, 232);
/* oklch */ color: oklch(56.9% 0.210 288.6);
Tailwind
colors: {
  custom: {
    50: '#a787f0',
    500: '#7856e8',
    950: '#000000',
  },
}
SCSS
$custom: #7856e8;
$custom-light: #a787f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7856e8",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 253.973,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56907,
    "c": 0.20984,
    "h": 288.6
  },
  "luminance": 0.16475
}

Semantic roles & 50–950 ramp

primary
#7856E8
secondary
#DBE8B2
accent
#D80DA9
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7856E8

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

Preview Lab → · Contrast checker → · Palette generator →

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