#7E4EF5#7E4EF5

#7E4EF5 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.4% C 0.234 H 290.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7E4EF5
RGBrgb(126, 78, 245)
HSLhsl(257, 89%, 63%)
HSVhsv(257, 68%, 96%)
CMYKcmyk(48.6%, 68.2%, 0%, 3.9%)
CIE-LABlab(47.59, 57.81, -76.71)
CIE-LCHlch(47.59, 96.06, 307.00°)
OKLaboklab(57.35% 0.0809 -0.22)
OKLCHoklch(57.35% 0.234 290.2)
XYZxyz(27.8053, 16.4758, 88.0836)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EF5 #C5F54E
analogous
#4E71F5 #7E4EF5 #D24EF5
triadic
#7E4EF5 #F57E4E #4EF57E
tetradic
#7E4EF5 #F54E71 #C5F54E #4EF5D2
square
#7E4EF5 #F54E71 #C5F54E #4EF5D2
split-complementary
#7E4EF5 #F5D24E #71F54E
monochromatic
#3E0BBE #5414F2 #7E4EF5 #A888F8 #D2C2FC

Accessibility & contrast

On white

4.89
#7E4EF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7E4EF5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EF5
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EF5#FFFFFF#000000##FFFFFF
##7E4EF51.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074FA
Deuteranopia (green-blind)
#006DF2
Tritanopia (blue-blind)
#56789C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e4ef5;
/* rgb */ color: rgb(126, 78, 245);
/* oklch */ color: oklch(57.4% 0.234 290.2);
Tailwind
colors: {
  custom: {
    50: '#ad83fa',
    500: '#7e4ef5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ef5;
$custom-light: #ad83fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ef5",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 245
  },
  "hsl": {
    "h": 257.246,
    "s": 89.305,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57352,
    "c": 0.23445,
    "h": 290.2
  },
  "luminance": 0.16477
}

Semantic roles & 50–950 ramp

primary
#7E4EF5
secondary
#DCEDB2
accent
#E600A4
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E4EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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