#7E56EC#7E56EC

#7E56EC is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.8% C 0.214 H 290.3°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7E56EC
RGBrgb(126, 86, 236)
HSLhsl(256, 80%, 63%)
HSVhsv(256, 64%, 93%)
CMYKcmyk(46.6%, 63.6%, 0%, 7.5%)
CIE-LABlab(48.44, 51.18, -70.28)
CIE-LCHlch(48.44, 86.94, 306.07°)
OKLaboklab(57.75% 0.0745 -0.2011)
OKLCHoklch(57.75% 0.215 290.3)
XYZxyz(27.0680, 17.1463, 81.2240)
Luminance0.1715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56EC #C4EC56
analogous
#5679EC #7E56EC #C956EC
triadic
#7E56EC #EC7E56 #56EC7E
tetradic
#7E56EC #EC5679 #C4EC56 #56ECC9
square
#7E56EC #EC5679 #C4EC56 #56ECC9
split-complementary
#7E56EC #ECC956 #79EC56
monochromatic
#3F14B3 #541FE6 #7E56EC #A88DF2 #D2C4F8

Accessibility & contrast

On white

4.74
#7E56EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#7E56EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56EC
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56EC#FFFFFF#000000##FFFFFF
##7E56EC1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F1
Deuteranopia (green-blind)
#0070E9
Tritanopia (blue-blind)
#5B7A99
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e56ec;
/* rgb */ color: rgb(126, 86, 236);
/* oklch */ color: oklch(57.8% 0.214 290.3);
Tailwind
colors: {
  custom: {
    50: '#ab88f3',
    500: '#7e56ec',
    950: '#000000',
  },
}
SCSS
$custom: #7e56ec;
$custom-light: #ab88f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56ec",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 256,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57752,
    "c": 0.2145,
    "h": 290.3
  },
  "luminance": 0.17147
}

Semantic roles & 50–950 ramp

primary
#7E56EC
secondary
#DBEAB4
accent
#DC09A4
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E56EC

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

Preview Lab → · Contrast checker → · Palette generator →

#7E56EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva