#7E4FEB#7E4FEB

#7E4FEB is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.7% C 0.222 H 291.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7E4FEB
RGBrgb(126, 79, 235)
HSLhsl(258, 80%, 62%)
HSVhsv(258, 66%, 92%)
CMYKcmyk(46.4%, 66.4%, 0%, 7.8%)
CIE-LABlab(47.01, 54.61, -72.05)
CIE-LCHlch(47.01, 90.41, 307.16°)
OKLaboklab(56.69% 0.0815 -0.2063)
OKLCHoklch(56.69% 0.222 291.6)
XYZxyz(26.3914, 16.0248, 80.2837)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FEB #BCEB4F
analogous
#4F6EEB #7E4FEB #CC4FEB
triadic
#7E4FEB #EB7E4F #4FEB7E
tetradic
#7E4FEB #EB4F6E #BCEB4F #4FEBCC
square
#7E4FEB #EB4F6E #BCEB4F #4FEBCC
split-complementary
#7E4FEB #EBCC4F #6EEB4F
monochromatic
#4114AC #561AE3 #7E4FEB #A686F1 #CFBDF7

Accessibility & contrast

On white

4.99
#7E4FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7E4FEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FEB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FEB#FFFFFF#000000##FFFFFF
##7E4FEB1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#5C7597
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e4feb;
/* rgb */ color: rgb(126, 79, 235);
/* oklch */ color: oklch(56.7% 0.222 291.6);
Tailwind
colors: {
  custom: {
    50: '#ac83f2',
    500: '#7e4feb',
    950: '#000000',
  },
}
SCSS
$custom: #7e4feb;
$custom-light: #ac83f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4feb",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 258.077,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56692,
    "c": 0.22187,
    "h": 291.6
  },
  "luminance": 0.16026
}

Semantic roles & 50–950 ramp

primary
#7E4FEB
secondary
#D6E8AE
accent
#DC0A9D
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E4FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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