#7E4E9D#7E4E9D

#7E4E9D is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.2% C 0.130 H 310.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7E4E9D
RGBrgb(126, 78, 157)
HSLhsl(276, 34%, 46%)
HSVhsv(276, 50%, 62%)
CMYKcmyk(19.7%, 50.3%, 0%, 38.4%)
CIE-LABlab(41.72, 35.19, -35.30)
CIE-LCHlch(41.72, 49.85, 314.91°)
OKLaboklab(51.22% 0.0846 -0.0986)
OKLCHoklch(51.22% 0.13 310.6)
XYZxyz(17.4133, 12.3190, 33.3522)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E9D #6D9D4E
analogous
#564E9D #7E4E9D #9D4E94
triadic
#7E4E9D #9D7E4E #4E9D7E
tetradic
#7E4E9D #9D564E #6D9D4E #4E949D
square
#7E4E9D #9D564E #6D9D4E #4E949D
split-complementary
#7E4E9D #949D4E #4E9D56
monochromatic
#3C254B #5D3A74 #7E4E9D #9C70B8 #B899CC

Accessibility & contrast

On white

6.06
#7E4E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7E4E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4E9D
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E9D#FFFFFF#000000##FFFFFF
##7E4E9D1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A0
Deuteranopia (green-blind)
#48639B
Tritanopia (blue-blind)
#7A5B6E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e4e9d;
/* rgb */ color: rgb(126, 78, 157);
/* oklch */ color: oklch(51.2% 0.130 310.6);
Tailwind
colors: {
  custom: {
    50: '#a581ba',
    500: '#7e4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e9d;
$custom-light: #a581ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e9d",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 276.456,
    "s": 33.617,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51216,
    "c": 0.12986,
    "h": 310.6
  },
  "luminance": 0.12319
}

Semantic roles & 50–950 ramp

primary
#7E4E9D
secondary
#9FB98E
accent
#CA5E88
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7E4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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