#7E319D#7E319D

#7E319D is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.175 H 314.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7E319D
RGBrgb(126, 49, 157)
HSLhsl(283, 52%, 40%)
HSVhsv(283, 69%, 62%)
CMYKcmyk(19.7%, 68.8%, 0%, 38.4%)
CIE-LABlab(36.11, 50.22, -44.23)
CIE-LCHlch(36.11, 66.93, 318.63°)
OKLaboklab(47.12% 0.1228 -0.1245)
OKLCHoklch(47.12% 0.175 314.6)
XYZxyz(15.7873, 9.0671, 32.8103)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E319D #509D31
analogous
#48319D #7E319D #9D3186
triadic
#7E319D #9D7E31 #319D7E
tetradic
#7E319D #9D4831 #509D31 #31869D
square
#7E319D #9D4831 #509D31 #31869D
split-complementary
#7E319D #869D31 #319D48
monochromatic
#331440 #59226E #7E319D #A146C5 #B875D4

Accessibility & contrast

On white

7.46
#7E319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E319D
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E319D#FFFFFF#000000##FFFFFF
##7E319D1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#2D579B
Tritanopia (blue-blind)
#7B4663
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e319d;
/* rgb */ color: rgb(126, 49, 157);
/* oklch */ color: oklch(47.1% 0.175 314.6);
Tailwind
colors: {
  custom: {
    50: '#a76fba',
    500: '#7e319d',
    950: '#000000',
  },
}
SCSS
$custom: #7e319d;
$custom-light: #a76fba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e319d",
  "rgb": {
    "r": 126,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 282.778,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47121,
    "c": 0.17482,
    "h": 314.6
  },
  "luminance": 0.09067
}

Semantic roles & 50–950 ramp

primary
#7E319D
secondary
#84BC6E
accent
#DC4C75
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E319D

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

Preview Lab → · Contrast checker → · Palette generator →

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