#7E3497#7E3497

#7E3497 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.165 H 316.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7E3497
RGBrgb(126, 52, 151)
HSLhsl(285, 49%, 40%)
HSVhsv(285, 66%, 59%)
CMYKcmyk(16.6%, 65.6%, 0%, 40.8%)
CIE-LABlab(36.23, 47.57, -40.42)
CIE-LCHlch(36.23, 62.42, 319.65°)
OKLaboklab(47.08% 0.1195 -0.1133)
OKLCHoklch(47.08% 0.165 316.5)
XYZxyz(15.4173, 9.1266, 30.2216)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3497 #4D9734
analogous
#4C3497 #7E3497 #97347F
triadic
#7E3497 #977E34 #34977E
tetradic
#7E3497 #974C34 #4D9734 #347F97
square
#7E3497 #974C34 #4D9734 #347F97
split-complementary
#7E3497 #7F9734 #34974C
monochromatic
#32153C #582469 #7E3497 #A248C0 #B976D0

Accessibility & contrast

On white

7.43
#7E3497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E3497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3497
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3497#FFFFFF#000000##FFFFFF
##7E34971.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E519A
Deuteranopia (green-blind)
#355795
Tritanopia (blue-blind)
#7D4661
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e3497;
/* rgb */ color: rgb(126, 52, 151);
/* oklch */ color: oklch(47.1% 0.165 316.5);
Tailwind
colors: {
  custom: {
    50: '#a671b6',
    500: '#7e3497',
    950: '#000000',
  },
}
SCSS
$custom: #7e3497;
$custom-light: #a671b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3497",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 284.848,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47081,
    "c": 0.16469,
    "h": 316.5
  },
  "luminance": 0.09126
}

Semantic roles & 50–950 ramp

primary
#7E3497
secondary
#81B86F
accent
#D84F72
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3497

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

Preview Lab → · Contrast checker → · Palette generator →

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