#7E56EB#7E56EB

#7E56EB is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.7% C 0.213 H 290.5°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7E56EB
RGBrgb(126, 86, 235)
HSLhsl(256, 79%, 63%)
HSVhsv(256, 63%, 92%)
CMYKcmyk(46.4%, 63.4%, 0%, 7.8%)
CIE-LABlab(48.37, 50.91, -69.83)
CIE-LCHlch(48.37, 86.42, 306.09°)
OKLaboklab(57.68% 0.0746 -0.1998)
OKLCHoklch(57.68% 0.213 290.5)
XYZxyz(26.9231, 17.0884, 80.4610)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56EB #C3EB56
analogous
#5679EB #7E56EB #C856EB
triadic
#7E56EB #EB7E56 #56EB7E
tetradic
#7E56EB #EB5679 #C3EB56 #56EBC8
square
#7E56EB #EB5679 #C3EB56 #56EBC8
split-complementary
#7E56EB #EBC856 #79EB56
monochromatic
#3F15B2 #541FE5 #7E56EB #A88DF1 #D2C3F8

Accessibility & contrast

On white

4.75
#7E56EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7E56EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56EB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56EB#FFFFFF#000000##FFFFFF
##7E56EB1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#006FE8
Tritanopia (blue-blind)
#5C7999
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e56eb;
/* rgb */ color: rgb(126, 86, 235);
/* oklch */ color: oklch(57.7% 0.213 290.5);
Tailwind
colors: {
  custom: {
    50: '#ab88f2',
    500: '#7e56eb',
    950: '#000000',
  },
}
SCSS
$custom: #7e56eb;
$custom-light: #ab88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56eb",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 256.107,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57676,
    "c": 0.21331,
    "h": 290.5
  },
  "luminance": 0.17089
}

Semantic roles & 50–950 ramp

primary
#7E56EB
secondary
#DBE9B4
accent
#DB0AA3
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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