#7E56E9#7E56E9

#7E56E9 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.5% C 0.211 H 290.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7E56E9
RGBrgb(126, 86, 233)
HSLhsl(256, 77%, 63%)
HSVhsv(256, 63%, 91%)
CMYKcmyk(45.9%, 63.1%, 0%, 8.6%)
CIE-LABlab(48.23, 50.36, -68.94)
CIE-LCHlch(48.23, 85.38, 306.15°)
OKLaboklab(57.53% 0.0748 -0.1972)
OKLCHoklch(57.53% 0.211 290.8)
XYZxyz(26.6358, 16.9734, 78.9478)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56E9 #C1E956
analogous
#5677E9 #7E56E9 #C856E9
triadic
#7E56E9 #E97E56 #56E97E
tetradic
#7E56E9 #E95677 #C1E956 #56E9C8
square
#7E56E9 #E95677 #C1E956 #56E9C8
split-complementary
#7E56E9 #E9C856 #77E956
monochromatic
#4017AE #5520E2 #7E56E9 #A78CF0 #D1C2F7

Accessibility & contrast

On white

4.78
#7E56E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#7E56E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56E9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56E9#FFFFFF#000000##FFFFFF
##7E56E91.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EE
Deuteranopia (green-blind)
#006FE6
Tritanopia (blue-blind)
#5D7998
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e56e9;
/* rgb */ color: rgb(126, 86, 233);
/* oklch */ color: oklch(57.5% 0.211 290.8);
Tailwind
colors: {
  custom: {
    50: '#ab88f1',
    500: '#7e56e9',
    950: '#000000',
  },
}
SCSS
$custom: #7e56e9;
$custom-light: #ab88f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56e9",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 233
  },
  "hsl": {
    "h": 256.327,
    "s": 76.963,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57526,
    "c": 0.21092,
    "h": 290.8
  },
  "luminance": 0.16974
}

Semantic roles & 50–950 ramp

primary
#7E56E9
secondary
#DAE8B3
accent
#D90CA1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E56E9

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

Preview Lab → · Contrast checker → · Palette generator →

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