#7E4E99#7E4E99

#7E4E99 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.0% C 0.125 H 312.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7E4E99
RGBrgb(126, 78, 153)
HSLhsl(278, 32%, 45%)
HSVhsv(278, 49%, 60%)
CMYKcmyk(17.6%, 49%, 0%, 40%)
CIE-LABlab(41.51, 34.26, -33.24)
CIE-LCHlch(41.51, 47.73, 315.87°)
OKLaboklab(50.99% 0.0841 -0.0926)
OKLCHoklch(50.99% 0.125 312.2)
XYZxyz(17.0773, 12.1847, 31.5831)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E99 #69994E
analogous
#584E99 #7E4E99 #994E8F
triadic
#7E4E99 #997E4E #4E997E
tetradic
#7E4E99 #99584E #69994E #4E8F99
square
#7E4E99 #99584E #69994E #4E8F99
split-complementary
#7E4E99 #8F994E #4E9958
monochromatic
#3B2548 #5D3970 #7E4E99 #9C6FB5 #B897CA

Accessibility & contrast

On white

6.11
#7E4E99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7E4E99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E99
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E99#FFFFFF#000000##FFFFFF
##7E4E991.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5F9C
Deuteranopia (green-blind)
#4B6397
Tritanopia (blue-blind)
#7B5A6C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e4e99;
/* rgb */ color: rgb(126, 78, 153);
/* oklch */ color: oklch(51.0% 0.125 312.2);
Tailwind
colors: {
  custom: {
    50: '#a581b7',
    500: '#7e4e99',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e99;
$custom-light: #a581b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e99",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 153
  },
  "hsl": {
    "h": 278.4,
    "s": 32.468,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50991,
    "c": 0.12503,
    "h": 312.2
  },
  "luminance": 0.12184
}

Semantic roles & 50–950 ramp

primary
#7E4E99
secondary
#9BB78C
accent
#C95F85
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7E4E99

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

Preview Lab → · Contrast checker → · Palette generator →

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