#7E3799#7E3799

#7E3799 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.6% C 0.162 H 315.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7E3799
RGBrgb(126, 55, 153)
HSLhsl(283, 47%, 41%)
HSVhsv(283, 64%, 60%)
CMYKcmyk(17.6%, 64.1%, 0%, 40%)
CIE-LABlab(36.87, 46.56, -40.60)
CIE-LCHlch(36.87, 61.78, 318.91°)
OKLaboklab(47.59% 0.1158 -0.1139)
OKLCHoklch(47.59% 0.162 315.5)
XYZxyz(15.7192, 9.4684, 31.1304)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3799 #529937
analogous
#4D3799 #7E3799 #993783
triadic
#7E3799 #997E37 #37997E
tetradic
#7E3799 #994D37 #529937 #378399
square
#7E3799 #994D37 #529937 #378399
split-complementary
#7E3799 #839937 #37994D
monochromatic
#34173F #59276C #7E3799 #A04EBF #B87BD0

Accessibility & contrast

On white

7.26
#7E3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7E3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3799
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3799#FFFFFF#000000##FFFFFF
##7E37991.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13539C
Deuteranopia (green-blind)
#365997
Tritanopia (blue-blind)
#7C4963
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e3799;
/* rgb */ color: rgb(126, 55, 153);
/* oklch */ color: oklch(47.6% 0.162 315.5);
Tailwind
colors: {
  custom: {
    50: '#a673b7',
    500: '#7e3799',
    950: '#000000',
  },
}
SCSS
$custom: #7e3799;
$custom-light: #a673b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3799",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 283.469,
    "s": 47.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47586,
    "c": 0.16239,
    "h": 315.5
  },
  "luminance": 0.09468
}

Semantic roles & 50–950 ramp

primary
#7E3799
secondary
#86B973
accent
#D75176
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E3799

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

Preview Lab → · Contrast checker → · Palette generator →

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