#7E319C#7E319C

#7E319C is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.174 H 315.0°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7E319C
RGBrgb(126, 49, 156)
HSLhsl(283, 52%, 40%)
HSVhsv(283, 69%, 61%)
CMYKcmyk(19.2%, 68.6%, 0%, 38.8%)
CIE-LABlab(36.05, 50.01, -43.73)
CIE-LCHlch(36.05, 66.44, 318.83°)
OKLaboklab(47.05% 0.1228 -0.123)
OKLCHoklch(47.05% 0.174 315)
XYZxyz(15.7023, 9.0331, 32.3625)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E319C #4F9C31
analogous
#49319C #7E319C #9C3184
triadic
#7E319C #9C7E31 #319C7E
tetradic
#7E319C #9C4931 #4F9C31 #31849C
square
#7E319C #9C4931 #4F9C31 #31849C
split-complementary
#7E319C #849C31 #319C49
monochromatic
#33143F #58226D #7E319C #A145C5 #B974D3

Accessibility & contrast

On white

7.48
#7E319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E319C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E319C
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E319C#FFFFFF#000000##FFFFFF
##7E319C1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#2E579A
Tritanopia (blue-blind)
#7C4662
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e319c;
/* rgb */ color: rgb(126, 49, 156);
/* oklch */ color: oklch(47.1% 0.174 315.0);
Tailwind
colors: {
  custom: {
    50: '#a76fba',
    500: '#7e319c',
    950: '#000000',
  },
}
SCSS
$custom: #7e319c;
$custom-light: #a76fba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e319c",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 283.178,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47054,
    "c": 0.17384,
    "h": 315
  },
  "luminance": 0.09033
}

Semantic roles & 50–950 ramp

primary
#7E319C
secondary
#83BB6D
accent
#DC4C74
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E319C

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

Preview Lab → · Contrast checker → · Palette generator →

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