#7E4FF2#7E4FF2

#7E4FF2 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.2% C 0.230 H 290.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7E4FF2
RGBrgb(126, 79, 242)
HSLhsl(257, 86%, 63%)
HSVhsv(257, 67%, 95%)
CMYKcmyk(47.9%, 67.4%, 0%, 5.1%)
CIE-LABlab(47.54, 56.50, -75.11)
CIE-LCHlch(47.54, 93.99, 306.95°)
OKLaboklab(57.24% 0.0805 -0.2153)
OKLCHoklch(57.24% 0.23 290.5)
XYZxyz(27.4226, 16.4373, 85.7150)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FF2 #C3F24F
analogous
#4F71F2 #7E4FF2 #D04FF2
triadic
#7E4FF2 #F27E4F #4FF27E
tetradic
#7E4FF2 #F24F71 #C3F24F #4FF2D0
square
#7E4FF2 #F24F71 #C3F24F #4FF2D0
split-complementary
#7E4FF2 #F2D04F #71F24F
monochromatic
#3F0EB9 #5416EE #7E4FF2 #A888F6 #D2C1FA

Accessibility & contrast

On white

4.90
#7E4FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7E4FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FF2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FF2#FFFFFF#000000##FFFFFF
##7E4FF21.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#58789A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e4ff2;
/* rgb */ color: rgb(126, 79, 242);
/* oklch */ color: oklch(57.2% 0.230 290.5);
Tailwind
colors: {
  custom: {
    50: '#ac83f7',
    500: '#7e4ff2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ff2;
$custom-light: #ac83f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ff2",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 257.301,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57244,
    "c": 0.22989,
    "h": 290.5
  },
  "luminance": 0.16438
}

Semantic roles & 50–950 ramp

primary
#7E4FF2
secondary
#DBECB1
accent
#E303A2
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E4FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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