#7A319B#7A319B

#7A319B is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.171 H 313.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7A319B
RGBrgb(122, 49, 155)
HSLhsl(281, 52%, 40%)
HSVhsv(281, 68%, 61%)
CMYKcmyk(21.3%, 68.4%, 0%, 39.2%)
CIE-LABlab(35.40, 48.88, -44.20)
CIE-LCHlch(35.40, 65.90, 317.88°)
OKLaboklab(46.45% 0.1177 -0.1245)
OKLCHoklch(46.45% 0.171 313.4)
XYZxyz(15.0397, 8.7012, 31.8912)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A319B #529B31
analogous
#45319B #7A319B #9B3187
triadic
#7A319B #9B7A31 #319B7A
tetradic
#7A319B #9B4531 #529B31 #31879B
square
#7A319B #9B4531 #529B31 #31879B
split-complementary
#7A319B #879B31 #319B45
monochromatic
#31143E #55226D #7A319B #9D45C4 #B573D3

Accessibility & contrast

On white

7.66
#7A319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7A319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A319B
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A319B#FFFFFF#000000##FFFFFF
##7A319B1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#2A5599
Tritanopia (blue-blind)
#774662
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a319b;
/* rgb */ color: rgb(122, 49, 155);
/* oklch */ color: oklch(46.4% 0.171 313.4);
Tailwind
colors: {
  custom: {
    50: '#a46fb9',
    500: '#7a319b',
    950: '#000000',
  },
}
SCSS
$custom: #7a319b;
$custom-light: #a46fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a319b",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 281.321,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.46449,
    "c": 0.1713,
    "h": 313.4
  },
  "luminance": 0.08701
}

Semantic roles & 50–950 ramp

primary
#7A319B
secondary
#85BB6D
accent
#DB4C79
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7A319B

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

Preview Lab → · Contrast checker → · Palette generator →

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