#7E4EFF#7E4EFF

#7E4EFF is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.2% C 0.246 H 288.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7E4EFF
RGBrgb(126, 78, 255)
HSLhsl(256, 100%, 65%)
HSVhsv(256, 69%, 100%)
CMYKcmyk(50.6%, 69.4%, 0%, 0%)
CIE-LABlab(48.39, 60.50, -80.99)
CIE-LCHlch(48.39, 101.09, 306.76°)
OKLaboklab(58.17% 0.0792 -0.2326)
OKLCHoklch(58.17% 0.246 288.8)
XYZxyz(29.3733, 17.1031, 96.3419)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EFF #CFFF4E
analogous
#4E77FF #7E4EFF #D64EFF
triadic
#7E4EFF #FF7E4E #4EFF7E
tetradic
#7E4EFF #FF4E77 #CFFF4E #4EFFD6
square
#7E4EFF #FF4E77 #CFFF4E #4EFFD6
split-complementary
#7E4EFF #FFD64E #77FF4E
monochromatic
#3900D3 #5111FF #7E4EFF #AB8BFF #D7C8FF

Accessibility & contrast

On white

4.75
#7E4EFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7E4EFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EFF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EFF#FFFFFF#000000##FFFFFF
##7E4EFF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077FF
Deuteranopia (green-blind)
#006EFC
Tritanopia (blue-blind)
#4F7CA1
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e4eff;
/* rgb */ color: rgb(126, 78, 255);
/* oklch */ color: oklch(58.2% 0.246 288.8);
Tailwind
colors: {
  custom: {
    50: '#ae83ff',
    500: '#7e4eff',
    950: '#000000',
  },
}
SCSS
$custom: #7e4eff;
$custom-light: #ae83ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4eff",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 255
  },
  "hsl": {
    "h": 256.271,
    "s": 100,
    "l": 65.294
  },
  "oklch": {
    "l": 0.58167,
    "c": 0.24569,
    "h": 288.8
  },
  "luminance": 0.17104
}

Semantic roles & 50–950 ramp

primary
#7E4EFF
secondary
#E2F2B7
accent
#E600A7
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #7E4EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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