#7E56EA#7E56EA

#7E56EA is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.6% C 0.212 H 290.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7E56EA
RGBrgb(126, 86, 234)
HSLhsl(256, 78%, 63%)
HSVhsv(256, 63%, 92%)
CMYKcmyk(46.2%, 63.2%, 0%, 8.2%)
CIE-LABlab(48.30, 50.64, -69.39)
CIE-LCHlch(48.30, 85.90, 306.12°)
OKLaboklab(57.6% 0.0747 -0.1985)
OKLCHoklch(57.6% 0.212 290.6)
XYZxyz(26.7791, 17.0307, 79.7022)
Luminance0.1703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56EA #C2EA56
analogous
#5678EA #7E56EA #C856EA
triadic
#7E56EA #EA7E56 #56EA7E
tetradic
#7E56EA #EA5678 #C2EA56 #56EAC8
square
#7E56EA #EA5678 #C2EA56 #56EAC8
split-complementary
#7E56EA #EAC856 #78EA56
monochromatic
#3F16B0 #5420E3 #7E56EA #A88CF1 #D1C3F8

Accessibility & contrast

On white

4.77
#7E56EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7E56EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56EA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56EA#FFFFFF#000000##FFFFFF
##7E56EA1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#006FE7
Tritanopia (blue-blind)
#5C7998
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e56ea;
/* rgb */ color: rgb(126, 86, 234);
/* oklch */ color: oklch(57.6% 0.212 290.6);
Tailwind
colors: {
  custom: {
    50: '#ab88f2',
    500: '#7e56ea',
    950: '#000000',
  },
}
SCSS
$custom: #7e56ea;
$custom-light: #ab88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56ea",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 256.216,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57601,
    "c": 0.21211,
    "h": 290.6
  },
  "luminance": 0.17032
}

Semantic roles & 50–950 ramp

primary
#7E56EA
secondary
#DAE9B3
accent
#DA0BA2
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E56EA

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

Preview Lab → · Contrast checker → · Palette generator →

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