#7E4E9F#7E4E9F

#7E4E9F is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.3% C 0.132 H 309.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7E4E9F
RGBrgb(126, 78, 159)
HSLhsl(276, 34%, 46%)
HSVhsv(276, 51%, 62%)
CMYKcmyk(20.8%, 50.9%, 0%, 37.6%)
CIE-LABlab(41.83, 35.66, -36.33)
CIE-LCHlch(41.83, 50.91, 314.47°)
OKLaboklab(51.33% 0.0848 -0.1015)
OKLCHoklch(51.33% 0.132 309.9)
XYZxyz(17.5854, 12.3879, 34.2589)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E9F #6F9F4E
analogous
#564E9F #7E4E9F #9F4E98
triadic
#7E4E9F #9F7E4E #4E9F7E
tetradic
#7E4E9F #9F564E #6F9F4E #4E989F
square
#7E4E9F #9F564E #6F9F4E #4E989F
split-complementary
#7E4E9F #989F4E #4E9F56
monochromatic
#3D264D #5D3A76 #7E4E9F #9C71B9 #B89ACD

Accessibility & contrast

On white

6.04
#7E4E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7E4E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E9F
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E9F#FFFFFF#000000##FFFFFF
##7E4E9F1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3960A2
Deuteranopia (green-blind)
#47649D
Tritanopia (blue-blind)
#7A5B6F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e4e9f;
/* rgb */ color: rgb(126, 78, 159);
/* oklch */ color: oklch(51.3% 0.132 309.9);
Tailwind
colors: {
  custom: {
    50: '#a581bc',
    500: '#7e4e9f',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e9f;
$custom-light: #a581bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e9f",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 275.556,
    "s": 34.177,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5133,
    "c": 0.13229,
    "h": 309.9
  },
  "luminance": 0.12388
}

Semantic roles & 50–950 ramp

primary
#7E4E9F
secondary
#A0BA8F
accent
#CA5E8A
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7E4E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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