#7E4FE2#7E4FE2

#7E4FE2 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.0% C 0.211 H 293.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7E4FE2
RGBrgb(126, 79, 226)
HSLhsl(259, 72%, 60%)
HSVhsv(259, 65%, 89%)
CMYKcmyk(44.2%, 65%, 0%, 11.4%)
CIE-LABlab(46.34, 52.20, -68.06)
CIE-LCHlch(46.34, 85.77, 307.49°)
OKLaboklab(56% 0.0827 -0.1946)
OKLCHoklch(56% 0.211 293)
XYZxyz(25.1239, 15.5178, 73.6083)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FE2 #B3E24F
analogous
#4F69E2 #7E4FE2 #C84FE2
triadic
#7E4FE2 #E27E4F #4FE27E
tetradic
#7E4FE2 #E24F69 #B3E24F #4FE2C8
square
#7E4FE2 #E24F69 #B3E24F #4FE2C8
split-complementary
#7E4FE2 #E2C84F #69E24F
monochromatic
#441A9D #5A22D1 #7E4FE2 #A584EB #CBB8F3

Accessibility & contrast

On white

5.12
#7E4FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7E4FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FE2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FE2#FFFFFF#000000##FFFFFF
##7E4FE21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#006BDF
Tritanopia (blue-blind)
#617292
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e4fe2;
/* rgb */ color: rgb(126, 79, 226);
/* oklch */ color: oklch(56.0% 0.211 293.0);
Tailwind
colors: {
  custom: {
    50: '#ab83ec',
    500: '#7e4fe2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fe2;
$custom-light: #ab83ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fe2",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 259.184,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.55999,
    "c": 0.21143,
    "h": 293
  },
  "luminance": 0.15519
}

Semantic roles & 50–950 ramp

primary
#7E4FE2
secondary
#D1E3AA
accent
#EE39B5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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