#7E3496#7E3496

#7E3496 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.0% C 0.164 H 316.9°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7E3496
RGBrgb(126, 52, 150)
HSLhsl(285, 49%, 40%)
HSVhsv(285, 65%, 59%)
CMYKcmyk(16%, 65.3%, 0%, 41.2%)
CIE-LABlab(36.16, 47.36, -39.91)
CIE-LCHlch(36.16, 61.93, 319.88°)
OKLaboklab(47.02% 0.1195 -0.1118)
OKLCHoklch(47.02% 0.164 316.9)
XYZxyz(15.3364, 9.0942, 29.7957)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3496 #4C9634
analogous
#4D3496 #7E3496 #96347D
triadic
#7E3496 #967E34 #34967E
tetradic
#7E3496 #964D34 #4C9634 #347D96
square
#7E3496 #964D34 #4C9634 #347D96
split-complementary
#7E3496 #7D9634 #34964D
monochromatic
#32143B #582469 #7E3496 #A248BF #B975CF

Accessibility & contrast

On white

7.45
#7E3496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7E3496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3496
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3496#FFFFFF#000000##FFFFFF
##7E34961.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115099
Deuteranopia (green-blind)
#365794
Tritanopia (blue-blind)
#7D4660
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e3496;
/* rgb */ color: rgb(126, 52, 150);
/* oklch */ color: oklch(47.0% 0.164 316.9);
Tailwind
colors: {
  custom: {
    50: '#a671b5',
    500: '#7e3496',
    950: '#000000',
  },
}
SCSS
$custom: #7e3496;
$custom-light: #a671b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3496",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 150
  },
  "hsl": {
    "h": 285.306,
    "s": 48.515,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47016,
    "c": 0.16368,
    "h": 316.9
  },
  "luminance": 0.09094
}

Semantic roles & 50–950 ramp

primary
#7E3496
secondary
#80B86E
accent
#D85071
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3496

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

Preview Lab → · Contrast checker → · Palette generator →

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