#7E3581#7E3581

#7E3581 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 45.9% C 0.141 H 326.0°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7E3581
RGBrgb(126, 53, 129)
HSLhsl(298, 42%, 36%)
HSVhsv(298, 59%, 51%)
CMYKcmyk(2.3%, 58.9%, 0%, 49.4%)
CIE-LABlab(35.14, 42.62, -28.64)
CIE-LCHlch(35.14, 51.35, 326.11°)
OKLaboklab(45.88% 0.1173 -0.0791)
OKLCHoklch(45.88% 0.141 326)
XYZxyz(13.8395, 8.5676, 21.6894)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3581 #388135
analogous
#583581 #7E3581 #81355E
triadic
#7E3581 #817E35 #35817E
tetradic
#7E3581 #815835 #388135 #355E81
square
#7E3581 #815835 #388135 #355E81
split-complementary
#7E3581 #5E8135 #358158
monochromatic
#29112A #542356 #7E3581 #A847AC #C06DC3

Accessibility & contrast

On white

7.74
#7E3581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E3581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3581
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3581#FFFFFF#000000##FFFFFF
##7E35811.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4D83
Deuteranopia (green-blind)
#44567F
Tritanopia (blue-blind)
#813F56
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e3581;
/* rgb */ color: rgb(126, 53, 129);
/* oklch */ color: oklch(45.9% 0.141 326.0);
Tailwind
colors: {
  custom: {
    50: '#a671a6',
    500: '#7e3581',
    950: '#000000',
  },
}
SCSS
$custom: #7e3581;
$custom-light: #a671a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3581",
  "rgb": {
    "r": 126,
    "g": 53,
    "b": 129
  },
  "hsl": {
    "h": 297.632,
    "s": 41.758,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45881,
    "c": 0.14148,
    "h": 326
  },
  "luminance": 0.08567
}

Semantic roles & 50–950 ramp

primary
#7E3581
secondary
#69AB66
accent
#D2565B
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#10080F
muted
#7F7B7F

Preview Lab

Preview with #7E3581

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

Preview Lab → · Contrast checker → · Palette generator →

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