#7E56EF#7E56EF

#7E56EF is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.0% C 0.218 H 289.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7E56EF
RGBrgb(126, 86, 239)
HSLhsl(256, 83%, 64%)
HSVhsv(256, 64%, 94%)
CMYKcmyk(47.3%, 64%, 0%, 6.3%)
CIE-LABlab(48.66, 52.01, -71.60)
CIE-LCHlch(48.66, 88.50, 305.99°)
OKLaboklab(57.98% 0.0742 -0.205)
OKLCHoklch(57.98% 0.218 289.9)
XYZxyz(27.5075, 17.3221, 83.5387)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56EF #C7EF56
analogous
#567AEF #7E56EF #CA56EF
triadic
#7E56EF #EF7E56 #56EF7E
tetradic
#7E56EF #EF567A #C7EF56 #56EFCA
square
#7E56EF #EF567A #C7EF56 #56EFCA
split-complementary
#7E56EF #EFCA56 #7AEF56
monochromatic
#3D12B9 #531EEA #7E56EF #A98EF4 #D3C6FA

Accessibility & contrast

On white

4.70
#7E56EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7E56EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56EF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56EF#FFFFFF#000000##FFFFFF
##7E56EF1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#0070EC
Tritanopia (blue-blind)
#597B9B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e56ef;
/* rgb */ color: rgb(126, 86, 239);
/* oklch */ color: oklch(58.0% 0.218 289.9);
Tailwind
colors: {
  custom: {
    50: '#ac88f5',
    500: '#7e56ef',
    950: '#000000',
  },
}
SCSS
$custom: #7e56ef;
$custom-light: #ac88f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56ef",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 255.686,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57979,
    "c": 0.21807,
    "h": 289.9
  },
  "luminance": 0.17323
}

Semantic roles & 50–950 ramp

primary
#7E56EF
secondary
#DDEBB5
accent
#DF06A6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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