#7E3687#7E3687

#7E3687 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.4% C 0.146 H 323.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7E3687
RGBrgb(126, 54, 135)
HSLhsl(293, 43%, 37%)
HSVhsv(293, 60%, 53%)
CMYKcmyk(6.7%, 60%, 0%, 47.1%)
CIE-LABlab(35.64, 43.31, -31.55)
CIE-LCHlch(35.64, 53.58, 323.93°)
OKLaboklab(46.36% 0.1165 -0.0875)
OKLCHoklch(46.36% 0.146 323.1)
XYZxyz(14.2961, 8.8240, 23.8671)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3687 #3F8736
analogous
#553687 #7E3687 #873668
triadic
#7E3687 #877E36 #36877E
tetradic
#7E3687 #875536 #3F8736 #366887
square
#7E3687 #875536 #3F8736 #366887
split-complementary
#7E3687 #688736 #368755
monochromatic
#2C1330 #55255B #7E3687 #A747B3 #BD71C6

Accessibility & contrast

On white

7.60
#7E3687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E3687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3687
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3687#FFFFFF#000000##FFFFFF
##7E36871.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E8A
Deuteranopia (green-blind)
#415785
Tritanopia (blue-blind)
#804259
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e3687;
/* rgb */ color: rgb(126, 54, 135);
/* oklch */ color: oklch(46.4% 0.146 323.1);
Tailwind
colors: {
  custom: {
    50: '#a671aa',
    500: '#7e3687',
    950: '#000000',
  },
}
SCSS
$custom: #7e3687;
$custom-light: #a671aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3687",
  "rgb": {
    "r": 126,
    "g": 54,
    "b": 135
  },
  "hsl": {
    "h": 293.333,
    "s": 42.857,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46355,
    "c": 0.1457,
    "h": 323.1
  },
  "luminance": 0.08823
}

Semantic roles & 50–950 ramp

primary
#7E3687
secondary
#72AF6A
accent
#D35563
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E3687

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

Preview Lab → · Contrast checker → · Palette generator →

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