#7A319D#7A319D

#7A319D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.173 H 312.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7A319D
RGBrgb(122, 49, 157)
HSLhsl(281, 52%, 40%)
HSVhsv(281, 69%, 62%)
CMYKcmyk(22.3%, 68.8%, 0%, 38.4%)
CIE-LABlab(35.54, 49.31, -45.19)
CIE-LCHlch(35.54, 66.89, 317.50°)
OKLaboklab(46.59% 0.1175 -0.1274)
OKLCHoklch(46.59% 0.173 312.7)
XYZxyz(15.2091, 8.7690, 32.7831)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A319D #549D31
analogous
#44319D #7A319D #9D318A
triadic
#7A319D #9D7A31 #319D7A
tetradic
#7A319D #9D4431 #549D31 #318A9D
square
#7A319D #9D4431 #549D31 #318A9D
split-complementary
#7A319D #8A9D31 #319D44
monochromatic
#321440 #56226E #7A319D #9C46C5 #B575D4

Accessibility & contrast

On white

7.63
#7A319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7A319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A319D
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A319D#FFFFFF#000000##FFFFFF
##7A319D1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#28559B
Tritanopia (blue-blind)
#764763
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a319d;
/* rgb */ color: rgb(122, 49, 157);
/* oklch */ color: oklch(46.6% 0.173 312.7);
Tailwind
colors: {
  custom: {
    50: '#a46fba',
    500: '#7a319d',
    950: '#000000',
  },
}
SCSS
$custom: #7a319d;
$custom-light: #a46fba;
$custom-dark: #000000;
JSON
{
  "hex": "#7a319d",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 280.556,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46587,
    "c": 0.17334,
    "h": 312.7
  },
  "luminance": 0.08769
}

Semantic roles & 50–950 ramp

primary
#7A319D
secondary
#87BC6E
accent
#DC4C7B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A319D

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

Preview Lab → · Contrast checker → · Palette generator →

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