#7E319A#7E319A

#7E319A is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.9% C 0.172 H 315.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7E319A
RGBrgb(126, 49, 154)
HSLhsl(284, 52%, 40%)
HSVhsv(284, 68%, 60%)
CMYKcmyk(18.2%, 68.2%, 0%, 39.6%)
CIE-LABlab(35.92, 49.59, -42.73)
CIE-LCHlch(35.92, 65.46, 319.25°)
OKLaboklab(46.92% 0.1229 -0.1201)
OKLCHoklch(46.92% 0.172 315.7)
XYZxyz(15.5343, 8.9659, 31.4779)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E319A #4D9A31
analogous
#4A319A #7E319A #9A3182
triadic
#7E319A #9A7E31 #319A7E
tetradic
#7E319A #9A4A31 #4D9A31 #31829A
square
#7E319A #9A4A31 #4D9A31 #31829A
split-complementary
#7E319A #829A31 #319A4A
monochromatic
#32133D #58226C #7E319A #A245C4 #B973D2

Accessibility & contrast

On white

7.52
#7E319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E319A
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E319A#FFFFFF#000000##FFFFFF
##7E319A1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509D
Deuteranopia (green-blind)
#305798
Tritanopia (blue-blind)
#7C4561
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e319a;
/* rgb */ color: rgb(126, 49, 154);
/* oklch */ color: oklch(46.9% 0.172 315.7);
Tailwind
colors: {
  custom: {
    50: '#a76fb8',
    500: '#7e319a',
    950: '#000000',
  },
}
SCSS
$custom: #7e319a;
$custom-light: #a76fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e319a",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 284,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46919,
    "c": 0.17185,
    "h": 315.7
  },
  "luminance": 0.08965
}

Semantic roles & 50–950 ramp

primary
#7E319A
secondary
#81BA6C
accent
#DB4D73
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E319A

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

Preview Lab → · Contrast checker → · Palette generator →

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