#7A31AA#7A31AA

#7A31AA is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.187 H 308.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7A31AA
RGBrgb(122, 49, 170)
HSLhsl(276, 55%, 43%)
HSVhsv(276, 71%, 67%)
CMYKcmyk(28.2%, 71.2%, 0%, 33.3%)
CIE-LABlab(36.44, 52.22, -51.56)
CIE-LCHlch(36.44, 73.38, 315.37°)
OKLaboklab(47.52% 0.116 -0.1461)
OKLCHoklch(47.52% 0.187 308.5)
XYZxyz(16.3786, 9.2367, 38.9425)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31AA #61AA31
analogous
#3D31AA #7A31AA #AA319D
triadic
#7A31AA #AA7A31 #31AA7A
tetradic
#7A31AA #AA3D31 #61AA31 #319DAA
square
#7A31AA #AA3D31 #61AA31 #319DAA
split-complementary
#7A31AA #9DAA31 #31AA3D
monochromatic
#36164B #58237A #7A31AA #994DCC #B47CD9

Accessibility & contrast

On white

7.38
#7A31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7A31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31AA
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31AA#FFFFFF#000000##FFFFFF
##7A31AA1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#1357A7
Tritanopia (blue-blind)
#734C6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a31aa;
/* rgb */ color: rgb(122, 49, 170);
/* oklch */ color: oklch(47.5% 0.187 308.5);
Tailwind
colors: {
  custom: {
    50: '#a56fc4',
    500: '#7a31aa',
    950: '#000000',
  },
}
SCSS
$custom: #7a31aa;
$custom-light: #a56fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31aa",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 276.198,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47516,
    "c": 0.18659,
    "h": 308.5
  },
  "luminance": 0.09236
}

Semantic roles & 50–950 ramp

primary
#7A31AA
secondary
#93C275
accent
#DF4984
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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