#7856E7#7856E7

#7856E7 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.8% C 0.209 H 288.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7856E7
RGBrgb(120, 86, 231)
HSLhsl(254, 75%, 62%)
HSVhsv(254, 63%, 91%)
CMYKcmyk(48.1%, 62.8%, 0%, 9.4%)
CIE-LABlab(47.52, 48.67, -68.99)
CIE-LCHlch(47.52, 84.43, 305.20°)
OKLaboklab(56.83% 0.0671 -0.1975)
OKLCHoklch(56.83% 0.209 288.8)
XYZxyz(25.4932, 16.4171, 77.4114)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7856E7 #C5E756
analogous
#567DE7 #7856E7 #C156E7
triadic
#7856E7 #E77856 #56E778
tetradic
#7856E7 #E7567D #C5E756 #56E7C1
square
#7856E7 #E7567D #C5E756 #56E7C1
split-complementary
#7856E7 #E7C156 #7DE756
monochromatic
#3A18AA #4D20DF #7856E7 #A38CEF #CEC1F6

Accessibility & contrast

On white

4.90
#7856E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7856E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7856E7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7856E7#FFFFFF#000000##FFFFFF
##7856E71.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#537997
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7856e7;
/* rgb */ color: rgb(120, 86, 231);
/* oklch */ color: oklch(56.8% 0.209 288.8);
Tailwind
colors: {
  custom: {
    50: '#a787f0',
    500: '#7856e7',
    950: '#000000',
  },
}
SCSS
$custom: #7856e7;
$custom-light: #a787f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7856e7",
  "rgb": {
    "r": 120,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 254.069,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56831,
    "c": 0.20863,
    "h": 288.8
  },
  "luminance": 0.16418
}

Semantic roles & 50–950 ramp

primary
#7856E7
secondary
#DBE7B2
accent
#D70EA8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7856E7

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

Preview Lab → · Contrast checker → · Palette generator →

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