#7E3785#7E3785

#7E3785 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.4% C 0.142 H 324.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7E3785
RGBrgb(126, 55, 133)
HSLhsl(295, 41%, 37%)
HSVhsv(295, 59%, 52%)
CMYKcmyk(5.3%, 58.6%, 0%, 47.8%)
CIE-LABlab(35.72, 42.41, -30.20)
CIE-LCHlch(35.72, 52.06, 324.55°)
OKLaboklab(46.37% 0.115 -0.0836)
OKLCHoklch(46.37% 0.142 324)
XYZxyz(14.2036, 8.8622, 23.1482)
Luminance0.0886 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3785 #3E8537
analogous
#573785 #7E3785 #853765
triadic
#7E3785 #857E37 #37857E
tetradic
#7E3785 #855737 #3E8537 #376585
square
#7E3785 #855737 #3E8537 #376585
split-complementary
#7E3785 #658537 #378557
monochromatic
#2C132E #55255A #7E3785 #A749B0 #BD72C5

Accessibility & contrast

On white

7.58
#7E3785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7E3785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3785
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3785#FFFFFF#000000##FFFFFF
##7E37851.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4F87
Deuteranopia (green-blind)
#435783
Tritanopia (blue-blind)
#804258
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e3785;
/* rgb */ color: rgb(126, 55, 133);
/* oklch */ color: oklch(46.4% 0.142 324.0);
Tailwind
colors: {
  custom: {
    50: '#a672a9',
    500: '#7e3785',
    950: '#000000',
  },
}
SCSS
$custom: #7e3785;
$custom-light: #a672a9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3785",
  "rgb": {
    "r": 126,
    "g": 55,
    "b": 133
  },
  "hsl": {
    "h": 294.615,
    "s": 41.489,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46374,
    "c": 0.14215,
    "h": 324
  },
  "luminance": 0.08861
}

Semantic roles & 50–950 ramp

primary
#7E3785
secondary
#70AD6A
accent
#D15662
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E3785

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

Preview Lab → · Contrast checker → · Palette generator →

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