#7E3495#7E3495

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

Color values

HEX#7E3495
RGBrgb(126, 52, 149)
HSLhsl(286, 48%, 39%)
HSVhsv(286, 65%, 58%)
CMYKcmyk(15.4%, 65.1%, 0%, 41.6%)
CIE-LABlab(36.10, 47.15, -39.40)
CIE-LCHlch(36.10, 61.44, 320.12°)
OKLaboklab(46.95% 0.1195 -0.1103)
OKLCHoklch(46.95% 0.163 317.3)
XYZxyz(15.2562, 9.0621, 29.3735)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3495 #4B9534
analogous
#4E3495 #7E3495 #95347C
triadic
#7E3495 #957E34 #34957E
tetradic
#7E3495 #954E34 #4B9534 #347C95
square
#7E3495 #954E34 #4B9534 #347C95
split-complementary
#7E3495 #7C9534 #34954E
monochromatic
#31143A #582468 #7E3495 #A347BF #B975CF

Accessibility & contrast

On white

7.47
#7E3495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E3495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3495
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3495#FFFFFF#000000##FFFFFF
##7E34951.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135098
Deuteranopia (green-blind)
#375793
Tritanopia (blue-blind)
#7D4560
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e3495;
/* rgb */ color: rgb(126, 52, 149);
/* oklch */ color: oklch(47.0% 0.163 317.3);
Tailwind
colors: {
  custom: {
    50: '#a671b5',
    500: '#7e3495',
    950: '#000000',
  },
}
SCSS
$custom: #7e3495;
$custom-light: #a671b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3495",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 149
  },
  "hsl": {
    "h": 285.773,
    "s": 48.259,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46952,
    "c": 0.16267,
    "h": 317.3
  },
  "luminance": 0.09062
}

Semantic roles & 50–950 ramp

primary
#7E3495
secondary
#7FB76E
accent
#D85070
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3495

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

Preview Lab → · Contrast checker → · Palette generator →

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