#7E4E97#7E4E97

#7E4E97 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 50.9% C 0.123 H 313.1°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7E4E97
RGBrgb(126, 78, 151)
HSLhsl(279, 32%, 45%)
HSVhsv(279, 48%, 59%)
CMYKcmyk(16.6%, 48.3%, 0%, 40.8%)
CIE-LABlab(41.40, 33.80, -32.20)
CIE-LCHlch(41.40, 46.68, 316.39°)
OKLaboklab(50.88% 0.0838 -0.0896)
OKLCHoklch(50.88% 0.123 313.1)
XYZxyz(16.9135, 12.1191, 30.7204)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E97 #67974E
analogous
#594E97 #7E4E97 #974E8C
triadic
#7E4E97 #977E4E #4E977E
tetradic
#7E4E97 #97594E #67974E #4E8C97
square
#7E4E97 #97594E #67974E #4E8C97
split-complementary
#7E4E97 #8C974E #4E9759
monochromatic
#3B2446 #5C396F #7E4E97 #9C6EB4 #B896C9

Accessibility & contrast

On white

6.13
#7E4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7E4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E97
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E97#FFFFFF#000000##FFFFFF
##7E4E971.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9A
Deuteranopia (green-blind)
#4C6395
Tritanopia (blue-blind)
#7C596B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e4e97;
/* rgb */ color: rgb(126, 78, 151);
/* oklch */ color: oklch(50.9% 0.123 313.1);
Tailwind
colors: {
  custom: {
    50: '#a581b6',
    500: '#7e4e97',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e97;
$custom-light: #a581b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e97",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 279.452,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.5088,
    "c": 0.12262,
    "h": 313.1
  },
  "luminance": 0.12119
}

Semantic roles & 50–950 ramp

primary
#7E4E97
secondary
#9AB68B
accent
#C86083
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7E4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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