#7E319E#7E319E

#7E319E is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.176 H 314.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7E319E
RGBrgb(126, 49, 158)
HSLhsl(282, 53%, 41%)
HSVhsv(282, 69%, 62%)
CMYKcmyk(20.3%, 69%, 0%, 38%)
CIE-LABlab(36.18, 50.44, -44.73)
CIE-LCHlch(36.18, 67.42, 318.43°)
OKLaboklab(47.19% 0.1227 -0.1259)
OKLCHoklch(47.19% 0.176 314.2)
XYZxyz(15.8730, 9.1014, 33.2617)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E319E #519E31
analogous
#47319E #7E319E #9E3187
triadic
#7E319E #9E7E31 #319E7E
tetradic
#7E319E #9E4731 #519E31 #31879E
square
#7E319E #9E4731 #519E31 #31879E
split-complementary
#7E319E #879E31 #319E47
monochromatic
#331441 #59236F #7E319E #A046C6 #B875D4

Accessibility & contrast

On white

7.45
#7E319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7E319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E319E
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E319E#FFFFFF#000000##FFFFFF
##7E319E1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A1
Deuteranopia (green-blind)
#2C579C
Tritanopia (blue-blind)
#7B4764
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e319e;
/* rgb */ color: rgb(126, 49, 158);
/* oklch */ color: oklch(47.2% 0.176 314.2);
Tailwind
colors: {
  custom: {
    50: '#a76fbb',
    500: '#7e319e',
    950: '#000000',
  },
}
SCSS
$custom: #7e319e;
$custom-light: #a76fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e319e",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 282.385,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47189,
    "c": 0.17582,
    "h": 314.2
  },
  "luminance": 0.09101
}

Semantic roles & 50–950 ramp

primary
#7E319E
secondary
#85BC6E
accent
#DC4C76
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E319E

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

Preview Lab → · Contrast checker → · Palette generator →

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