#7E4E96#7E4E96

#7E4E96 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 50.8% C 0.121 H 313.5°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7E4E96
RGBrgb(126, 78, 150)
HSLhsl(280, 32%, 45%)
HSVhsv(280, 48%, 59%)
CMYKcmyk(16%, 48%, 0%, 41.2%)
CIE-LABlab(41.35, 33.57, -31.68)
CIE-LCHlch(41.35, 46.16, 316.66°)
OKLaboklab(50.83% 0.0836 -0.088)
OKLCHoklch(50.83% 0.121 313.5)
XYZxyz(16.8327, 12.0868, 30.2945)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4E96 #66964E
analogous
#5A4E96 #7E4E96 #964E8A
triadic
#7E4E96 #967E4E #4E967E
tetradic
#7E4E96 #965A4E #66964E #4E8A96
square
#7E4E96 #965A4E #66964E #4E8A96
split-complementary
#7E4E96 #8A964E #4E965A
monochromatic
#3A2445 #5C396E #7E4E96 #9C6EB3 #B896C8

Accessibility & contrast

On white

6.15
#7E4E96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E4E96
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4E96#FFFFFF#000000##FFFFFF
##7E4E961.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e4e96;
/* rgb */ color: rgb(126, 78, 150);
/* oklch */ color: oklch(50.8% 0.121 313.5);
Tailwind
colors: {
  custom: {
    50: '#a581b5',
    500: '#7e4e96',
    950: '#000000',
  },
}
SCSS
$custom: #7e4e96;
$custom-light: #a581b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4e96",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 150
  },
  "hsl": {
    "h": 280,
    "s": 31.579,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50825,
    "c": 0.12142,
    "h": 313.5
  },
  "luminance": 0.12086
}

Semantic roles & 50–950 ramp

primary
#7E4E96
secondary
#99B58B
accent
#C86083
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7E4E96

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

Preview Lab → · Contrast checker → · Palette generator →

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