#7A31C4#7A31C4

#7A31C4 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.213 H 301.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7A31C4
RGBrgb(122, 49, 196)
HSLhsl(270, 60%, 48%)
HSVhsv(270, 75%, 77%)
CMYKcmyk(37.8%, 75%, 0%, 23.1%)
CIE-LABlab(38.41, 58.27, -63.71)
CIE-LCHlch(38.41, 86.34, 312.44°)
OKLaboklab(49.53% 0.1112 -0.1819)
OKLCHoklch(49.53% 0.213 301.4)
XYZxyz(19.0857, 10.3196, 53.2002)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31C4 #7BC431
analogous
#3131C4 #7A31C4 #C331C4
triadic
#7A31C4 #C47A31 #31C47A
tetradic
#7A31C4 #C43131 #7BC431 #31C4C3
square
#7A31C4 #C43131 #7BC431 #31C4C3
split-complementary
#7A31C4 #C4C331 #31C431
monochromatic
#3D1962 #5C2593 #7A31C4 #995CD6 #B78DE2

Accessibility & contrast

On white

6.85
#7A31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7A31C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A31C4
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31C4#FFFFFF#000000##FFFFFF
##7A31C41.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#005AC1
Tritanopia (blue-blind)
#6A5779
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a31c4;
/* rgb */ color: rgb(122, 49, 196);
/* oklch */ color: oklch(49.5% 0.213 301.4);
Tailwind
colors: {
  custom: {
    50: '#a771d7',
    500: '#7a31c4',
    950: '#000000',
  },
}
SCSS
$custom: #7a31c4;
$custom-light: #a771d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31c4",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 269.796,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49532,
    "c": 0.21313,
    "h": 301.4
  },
  "luminance": 0.1032
}

Semantic roles & 50–950 ramp

primary
#7A31C4
secondary
#A9CD84
accent
#E34594
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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