#7E3397#7E3397

#7E3397 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.166 H 316.6°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7E3397
RGBrgb(126, 51, 151)
HSLhsl(285, 50%, 40%)
HSVhsv(285, 66%, 59%)
CMYKcmyk(16.6%, 66.2%, 0%, 40.8%)
CIE-LABlab(36.06, 48.04, -40.69)
CIE-LCHlch(36.06, 62.95, 319.74°)
OKLaboklab(46.96% 0.1207 -0.1141)
OKLCHoklch(46.96% 0.166 316.6)
XYZxyz(15.3731, 9.0382, 30.2069)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3397 #4C9733
analogous
#4C3397 #7E3397 #97337E
triadic
#7E3397 #977E33 #33977E
tetradic
#7E3397 #974C33 #4C9733 #337E97
square
#7E3397 #974C33 #4C9733 #337E97
split-complementary
#7E3397 #7E9733 #33974C
monochromatic
#32143C #582469 #7E3397 #A247C1 #B974D0

Accessibility & contrast

On white

7.48
#7E3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E3397
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3397#FFFFFF#000000##FFFFFF
##7E33971.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B509A
Deuteranopia (green-blind)
#345795
Tritanopia (blue-blind)
#7D4560
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e3397;
/* rgb */ color: rgb(126, 51, 151);
/* oklch */ color: oklch(47.0% 0.166 316.6);
Tailwind
colors: {
  custom: {
    50: '#a670b6',
    500: '#7e3397',
    950: '#000000',
  },
}
SCSS
$custom: #7e3397;
$custom-light: #a670b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3397",
  "rgb": {
    "r": 126,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 285,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46959,
    "c": 0.1661,
    "h": 316.6
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

primary
#7E3397
secondary
#80B86D
accent
#D94F71
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3397

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

Preview Lab → · Contrast checker → · Palette generator →

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