#7E56E7#7E56E7

#7E56E7 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.4% C 0.209 H 291.1°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7E56E7
RGBrgb(126, 86, 231)
HSLhsl(257, 75%, 62%)
HSVhsv(257, 63%, 91%)
CMYKcmyk(45.5%, 62.8%, 0%, 9.4%)
CIE-LABlab(48.08, 49.81, -68.05)
CIE-LCHlch(48.08, 84.33, 306.21°)
OKLaboklab(57.38% 0.075 -0.1946)
OKLCHoklch(57.38% 0.209 291.1)
XYZxyz(26.3517, 16.8598, 77.4516)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56E7 #BFE756
analogous
#5676E7 #7E56E7 #C756E7
triadic
#7E56E7 #E77E56 #56E77E
tetradic
#7E56E7 #E75676 #BFE756 #56E7C7
square
#7E56E7 #E75676 #BFE756 #56E7C7
split-complementary
#7E56E7 #E7C756 #76E756
monochromatic
#4118AA #5520DF #7E56E7 #A78CEF #D0C1F6

Accessibility & contrast

On white

4.80
#7E56E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7E56E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56E7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56E7#FFFFFF#000000##FFFFFF
##7E56E71.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#006FE4
Tritanopia (blue-blind)
#5E7897
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e56e7;
/* rgb */ color: rgb(126, 86, 231);
/* oklch */ color: oklch(57.4% 0.209 291.1);
Tailwind
colors: {
  custom: {
    50: '#ab88f0',
    500: '#7e56e7',
    950: '#000000',
  },
}
SCSS
$custom: #7e56e7;
$custom-light: #ab88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56e7",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 256.552,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57377,
    "c": 0.20853,
    "h": 291.1
  },
  "luminance": 0.16861
}

Semantic roles & 50–950 ramp

primary
#7E56E7
secondary
#D8E7B2
accent
#D70EA0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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