#7E3186#7E3186

#7E3186 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.7% C 0.152 H 323.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7E3186
RGBrgb(126, 49, 134)
HSLhsl(294, 46%, 36%)
HSVhsv(294, 63%, 53%)
CMYKcmyk(6%, 63.4%, 0%, 47.5%)
CIE-LABlab(34.71, 45.51, -32.41)
CIE-LCHlch(34.71, 55.87, 324.55°)
OKLaboklab(45.66% 0.123 -0.0899)
OKLCHoklch(45.66% 0.152 323.8)
XYZxyz(14.0052, 8.3543, 23.4245)
Luminance0.0835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3186 #398631
analogous
#533186 #7E3186 #863163
triadic
#7E3186 #867E31 #31867E
tetradic
#7E3186 #865331 #398631 #316386
square
#7E3186 #865331 #398631 #316386
split-complementary
#7E3186 #638631 #318653
monochromatic
#2A102C #542159 #7E3186 #A841B3 #BF69C8

Accessibility & contrast

On white

7.86
#7E3186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E3186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E3186
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3186#FFFFFF#000000##FFFFFF
##7E31861.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C89
Deuteranopia (green-blind)
#3E5584
Tritanopia (blue-blind)
#803E57
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e3186;
/* rgb */ color: rgb(126, 49, 134);
/* oklch */ color: oklch(45.7% 0.152 323.8);
Tailwind
colors: {
  custom: {
    50: '#a66fa9',
    500: '#7e3186',
    950: '#000000',
  },
}
SCSS
$custom: #7e3186;
$custom-light: #a66fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3186",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 134
  },
  "hsl": {
    "h": 294.353,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45658,
    "c": 0.15241,
    "h": 323.8
  },
  "luminance": 0.08353
}

Semantic roles & 50–950 ramp

primary
#7E3186
secondary
#6AB063
accent
#D6525E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7E3186

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

Preview Lab → · Contrast checker → · Palette generator →

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