#7E4AFF#7E4AFF

#7E4AFF is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.7% C 0.250 H 289.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7E4AFF
RGBrgb(126, 74, 255)
HSLhsl(257, 100%, 65%)
HSVhsv(257, 71%, 100%)
CMYKcmyk(50.6%, 71%, 0%, 0%)
CIE-LABlab(47.69, 62.46, -82.13)
CIE-LCHlch(47.69, 103.18, 307.25°)
OKLaboklab(57.67% 0.0825 -0.2359)
OKLCHoklch(57.67% 0.25 289.3)
XYZxyz(29.0977, 16.5519, 96.2500)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4AFF #CBFF4A
analogous
#4A70FF #7E4AFF #D94AFF
triadic
#7E4AFF #FF7E4A #4AFF7E
tetradic
#7E4AFF #FF4A70 #CBFF4A #4AFFD9
square
#7E4AFF #FF4A70 #CBFF4A #4AFFD9
split-complementary
#7E4AFF #FFD94A #70FF4A
monochromatic
#3B00CF #520DFF #7E4AFF #AA87FF #D5C4FF

Accessibility & contrast

On white

4.87
#7E4AFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7E4AFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4AFF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4AFF#FFFFFF#000000##FFFFFF
##7E4AFF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#006DFC
Tritanopia (blue-blind)
#4F7AA0
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e4aff;
/* rgb */ color: rgb(126, 74, 255);
/* oklch */ color: oklch(57.7% 0.250 289.3);
Tailwind
colors: {
  custom: {
    50: '#ae81ff',
    500: '#7e4aff',
    950: '#000000',
  },
}
SCSS
$custom: #7e4aff;
$custom-light: #ae81ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4aff",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 255
  },
  "hsl": {
    "h": 257.238,
    "s": 100,
    "l": 64.51
  },
  "oklch": {
    "l": 0.5767,
    "c": 0.24992,
    "h": 289.3
  },
  "luminance": 0.16553
}

Semantic roles & 50–950 ramp

primary
#7E4AFF
secondary
#E0F2B3
accent
#E600A4
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #7E4AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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