#7E319F#7E319F

#7E319F is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.177 H 313.9°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7E319F
RGBrgb(126, 49, 159)
HSLhsl(282, 53%, 41%)
HSVhsv(282, 69%, 62%)
CMYKcmyk(20.8%, 69.2%, 0%, 37.6%)
CIE-LABlab(36.24, 50.65, -45.23)
CIE-LCHlch(36.24, 67.91, 318.23°)
OKLaboklab(47.26% 0.1226 -0.1274)
OKLCHoklch(47.26% 0.177 313.9)
XYZxyz(15.9594, 9.1360, 33.7169)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E319F #529F31
analogous
#47319F #7E319F #9F3189
triadic
#7E319F #9F7E31 #319F7E
tetradic
#7E319F #9F4731 #529F31 #31899F
square
#7E319F #9F4731 #529F31 #31899F
split-complementary
#7E319F #899F31 #319F47
monochromatic
#341441 #592370 #7E319F #A047C6 #B876D5

Accessibility & contrast

On white

7.43
#7E319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E319F
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E319F#FFFFFF#000000##FFFFFF
##7E319F1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e319f;
/* rgb */ color: rgb(126, 49, 159);
/* oklch */ color: oklch(47.3% 0.177 313.9);
Tailwind
colors: {
  custom: {
    50: '#a76fbc',
    500: '#7e319f',
    950: '#000000',
  },
}
SCSS
$custom: #7e319f;
$custom-light: #a76fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e319f",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 282,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47258,
    "c": 0.17682,
    "h": 313.9
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

primary
#7E319F
secondary
#86BD6F
accent
#DC4C77
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E319F

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

Preview Lab → · Contrast checker → · Palette generator →

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