#7E4EDC#7E4EDC

#7E4EDC is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.4% C 0.206 H 294.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7E4EDC
RGBrgb(126, 78, 220)
HSLhsl(260, 67%, 58%)
HSVhsv(260, 65%, 86%)
CMYKcmyk(42.7%, 64.5%, 0%, 13.7%)
CIE-LABlab(45.70, 51.13, -65.67)
CIE-LCHlch(45.70, 83.23, 307.90°)
OKLaboklab(55.41% 0.0844 -0.1876)
OKLCHoklch(55.41% 0.206 294.2)
XYZxyz(24.2434, 15.0511, 69.3241)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EDC #ACDC4E
analogous
#4E65DC #7E4EDC #C54EDC
triadic
#7E4EDC #DC7E4E #4EDC7E
tetradic
#7E4EDC #DC4E65 #ACDC4E #4EDCC5
square
#7E4EDC #DC4E65 #ACDC4E #4EDCC5
split-complementary
#7E4EDC #DCC54E #65DC4E
monochromatic
#451D93 #5D27C6 #7E4EDC #A381E6 #C8B4F0

Accessibility & contrast

On white

5.24
#7E4EDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7E4EDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EDC
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EDC#FFFFFF#000000##FFFFFF
##7E4EDC1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#646F8E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e4edc;
/* rgb */ color: rgb(126, 78, 220);
/* oklch */ color: oklch(55.4% 0.206 294.2);
Tailwind
colors: {
  custom: {
    50: '#aa82e8',
    500: '#7e4edc',
    950: '#000000',
  },
}
SCSS
$custom: #7e4edc;
$custom-light: #aa82e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4edc",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 220
  },
  "hsl": {
    "h": 260.282,
    "s": 66.981,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55406,
    "c": 0.20569,
    "h": 294.2
  },
  "luminance": 0.15052
}

Semantic roles & 50–950 ramp

primary
#7E4EDC
secondary
#CCDFA7
accent
#EA3EB0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4EDC

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

Preview Lab → · Contrast checker → · Palette generator →

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