#7E3787#7E3787

#7E3787 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.5% C 0.144 H 323.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7E3787
RGBrgb(126, 55, 135)
HSLhsl(293, 42%, 37%)
HSVhsv(293, 59%, 53%)
CMYKcmyk(6.7%, 59.3%, 0%, 47.1%)
CIE-LABlab(35.83, 42.81, -31.26)
CIE-LCHlch(35.83, 53.01, 323.86°)
OKLaboklab(46.49% 0.1151 -0.0867)
OKLCHoklch(46.49% 0.144 323)
XYZxyz(14.3431, 8.9180, 23.8828)
Luminance0.0892 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3787 #408737
analogous
#563787 #7E3787 #873768
triadic
#7E3787 #877E37 #37877E
tetradic
#7E3787 #875637 #408737 #376887
square
#7E3787 #875637 #408737 #376887
split-complementary
#7E3787 #688737 #378756
monochromatic
#2D1430 #55255C #7E3787 #A749B2 #BC73C6

Accessibility & contrast

On white

7.54
#7E3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3787
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3787#FFFFFF#000000##FFFFFF
##7E37871.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F8A
Deuteranopia (green-blind)
#425785
Tritanopia (blue-blind)
#804259
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e3787;
/* rgb */ color: rgb(126, 55, 135);
/* oklch */ color: oklch(46.5% 0.144 323.0);
Tailwind
colors: {
  custom: {
    50: '#a672aa',
    500: '#7e3787',
    950: '#000000',
  },
}
SCSS
$custom: #7e3787;
$custom-light: #a672aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3787",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 293.25,
    "s": 42.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46488,
    "c": 0.14411,
    "h": 323
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#7E3787
secondary
#73AF6B
accent
#D25664
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E3787

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

Preview Lab → · Contrast checker → · Palette generator →

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