#7A319E#7A319E

#7A319E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.174 H 312.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7A319E
RGBrgb(122, 49, 158)
HSLhsl(280, 53%, 41%)
HSVhsv(280, 69%, 62%)
CMYKcmyk(22.8%, 69%, 0%, 38%)
CIE-LABlab(35.60, 49.54, -45.69)
CIE-LCHlch(35.60, 67.39, 317.31°)
OKLaboklab(46.66% 0.1174 -0.1289)
OKLCHoklch(46.66% 0.174 312.3)
XYZxyz(15.2948, 8.8032, 33.2346)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A319E #559E31
analogous
#43319E #7A319E #9E318C
triadic
#7A319E #9E7A31 #319E7A
tetradic
#7A319E #9E4331 #559E31 #318C9E
square
#7A319E #9E4331 #559E31 #318C9E
split-complementary
#7A319E #8C9E31 #319E43
monochromatic
#321441 #56236F #7A319E #9C46C6 #B575D4

Accessibility & contrast

On white

7.61
#7A319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7A319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A319E
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A319E#FFFFFF#000000##FFFFFF
##7A319E1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#27559C
Tritanopia (blue-blind)
#764763
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a319e;
/* rgb */ color: rgb(122, 49, 158);
/* oklch */ color: oklch(46.7% 0.174 312.3);
Tailwind
colors: {
  custom: {
    50: '#a46fbb',
    500: '#7a319e',
    950: '#000000',
  },
}
SCSS
$custom: #7a319e;
$custom-light: #a46fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a319e",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 280.183,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46657,
    "c": 0.17436,
    "h": 312.3
  },
  "luminance": 0.08803
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A319E

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

Preview Lab → · Contrast checker → · Palette generator →

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