#7E56BE#7E56BE

#7E56BE is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.5% C 0.158 H 298.8°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7E56BE
RGBrgb(126, 86, 190)
HSLhsl(263, 44%, 54%)
HSVhsv(263, 55%, 75%)
CMYKcmyk(33.7%, 54.7%, 0%, 25.5%)
CIE-LABlab(45.37, 38.81, -48.94)
CIE-LCHlch(45.37, 62.47, 308.41°)
OKLaboklab(54.53% 0.0761 -0.1384)
OKLCHoklch(54.53% 0.158 298.8)
XYZxyz(21.2240, 14.8087, 50.4454)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56BE #96BE56
analogous
#5662BE #7E56BE #B256BE
triadic
#7E56BE #BE7E56 #56BE7E
tetradic
#7E56BE #BE5662 #96BE56 #56BEB2
square
#7E56BE #BE5662 #96BE56 #56BEB2
split-complementary
#7E56BE #BEB256 #62BE56
monochromatic
#452B6F #603C9B #7E56BE #A082CF #C1AEE0

Accessibility & contrast

On white

5.30
#7E56BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7E56BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56BE
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56BE#FFFFFF#000000##FFFFFF
##7E56BE1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6BC2
Deuteranopia (green-blind)
#386ABC
Tritanopia (blue-blind)
#706B82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e56be;
/* rgb */ color: rgb(126, 86, 190);
/* oklch */ color: oklch(54.5% 0.158 298.8);
Tailwind
colors: {
  custom: {
    50: '#a787d2',
    500: '#7e56be',
    950: '#000000',
  },
}
SCSS
$custom: #7e56be;
$custom-light: #a787d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56be",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 190
  },
  "hsl": {
    "h": 263.077,
    "s": 44.444,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54529,
    "c": 0.15799,
    "h": 298.8
  },
  "luminance": 0.14809
}

Semantic roles & 50–950 ramp

primary
#7E56BE
secondary
#BDCEA2
accent
#D454A3
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7E56BE

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

Preview Lab → · Contrast checker → · Palette generator →

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