#7E319B#7E319B

#7E319B is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.173 H 315.3°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7E319B
RGBrgb(126, 49, 155)
HSLhsl(284, 52%, 40%)
HSVhsv(284, 68%, 61%)
CMYKcmyk(18.7%, 68.4%, 0%, 39.2%)
CIE-LABlab(35.98, 49.80, -43.23)
CIE-LCHlch(35.98, 65.94, 319.04°)
OKLaboklab(46.99% 0.1229 -0.1215)
OKLCHoklch(46.99% 0.173 315.3)
XYZxyz(15.6179, 8.9994, 31.9183)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E319B #4E9B31
analogous
#49319B #7E319B #9B3183
triadic
#7E319B #9B7E31 #319B7E
tetradic
#7E319B #9B4931 #4E9B31 #31839B
square
#7E319B #9B4931 #4E9B31 #31839B
split-complementary
#7E319B #839B31 #319B49
monochromatic
#32143E #58226D #7E319B #A145C4 #B973D3

Accessibility & contrast

On white

7.50
#7E319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E319B
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E319B#FFFFFF#000000##FFFFFF
##7E319B1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e319b;
/* rgb */ color: rgb(126, 49, 155);
/* oklch */ color: oklch(47.0% 0.173 315.3);
Tailwind
colors: {
  custom: {
    50: '#a76fb9',
    500: '#7e319b',
    950: '#000000',
  },
}
SCSS
$custom: #7e319b;
$custom-light: #a76fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e319b",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 283.585,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.46986,
    "c": 0.17284,
    "h": 315.3
  },
  "luminance": 0.08999
}

Semantic roles & 50–950 ramp

primary
#7E319B
secondary
#82BB6D
accent
#DB4C74
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7E319B

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

Preview Lab → · Contrast checker → · Palette generator →

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