#7D319E#7D319E

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

Color values

HEX#7D319E
RGBrgb(125, 49, 158)
HSLhsl(282, 53%, 41%)
HSVhsv(282, 69%, 62%)
CMYKcmyk(20.9%, 69%, 0%, 38%)
CIE-LABlab(36.03, 50.21, -44.97)
CIE-LCHlch(36.03, 67.41, 318.15°)
OKLaboklab(47.06% 0.1214 -0.1267)
OKLCHoklch(47.06% 0.175 313.8)
XYZxyz(15.7263, 9.0257, 33.2548)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D319E #529E31
analogous
#46319E #7D319E #9E3188
triadic
#7D319E #9E7D31 #319E7D
tetradic
#7D319E #9E4631 #529E31 #31889E
square
#7D319E #9E4631 #529E31 #31889E
split-complementary
#7D319E #889E31 #319E46
monochromatic
#331441 #58236F #7D319E #9F46C6 #B775D4

Accessibility & contrast

On white

7.49
#7D319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D319E
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D319E#FFFFFF#000000##FFFFFF
##7D319E1.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d319e;
/* rgb */ color: rgb(125, 49, 158);
/* oklch */ color: oklch(47.1% 0.175 313.8);
Tailwind
colors: {
  custom: {
    50: '#a66fbb',
    500: '#7d319e',
    950: '#000000',
  },
}
SCSS
$custom: #7d319e;
$custom-light: #a66fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d319e",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 281.835,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47055,
    "c": 0.17545,
    "h": 313.8
  },
  "luminance": 0.09025
}

Semantic roles & 50–950 ramp

primary
#7D319E
secondary
#86BC6E
accent
#DC4C77
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D319E

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

Preview Lab → · Contrast checker → · Palette generator →

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