#7E56E5#7E56E5

#7E56E5 is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.2% C 0.206 H 291.4°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E56E5
RGBrgb(126, 86, 229)
HSLhsl(257, 73%, 62%)
HSVhsv(257, 62%, 90%)
CMYKcmyk(45%, 62.4%, 0%, 10.2%)
CIE-LABlab(47.94, 49.27, -67.15)
CIE-LCHlch(47.94, 83.28, 306.27°)
OKLaboklab(57.23% 0.0752 -0.1919)
OKLCHoklch(57.23% 0.206 291.4)
XYZxyz(26.0709, 16.7475, 75.9725)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56E5 #BDE556
analogous
#5676E5 #7E56E5 #C556E5
triadic
#7E56E5 #E57E56 #56E57E
tetradic
#7E56E5 #E55676 #BDE556 #56E5C5
square
#7E56E5 #E55676 #BDE556 #56E5C5
split-complementary
#7E56E5 #E5C556 #76E556
monochromatic
#411AA7 #5622DC #7E56E5 #A68BED #CFC0F5

Accessibility & contrast

On white

4.83
#7E56E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7E56E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56E5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56E5#FFFFFF#000000##FFFFFF
##7E56E51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EA
Deuteranopia (green-blind)
#006FE2
Tritanopia (blue-blind)
#5F7796
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e56e5;
/* rgb */ color: rgb(126, 86, 229);
/* oklch */ color: oklch(57.2% 0.206 291.4);
Tailwind
colors: {
  custom: {
    50: '#ab88ee',
    500: '#7e56e5',
    950: '#000000',
  },
}
SCSS
$custom: #7e56e5;
$custom-light: #ab88ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56e5",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 229
  },
  "hsl": {
    "h": 256.783,
    "s": 73.333,
    "l": 61.765
  },
  "oklch": {
    "l": 0.57228,
    "c": 0.20613,
    "h": 291.4
  },
  "luminance": 0.16748
}

Semantic roles & 50–950 ramp

primary
#7E56E5
secondary
#D7E6B1
accent
#D5109E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E56E5

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

Preview Lab → · Contrast checker → · Palette generator →

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