#7A31C5#7A31C5

#7A31C5 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.6% C 0.214 H 301.2°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7A31C5
RGBrgb(122, 49, 197)
HSLhsl(270, 60%, 48%)
HSVhsv(270, 75%, 77%)
CMYKcmyk(38.1%, 75.1%, 0%, 22.7%)
CIE-LABlab(38.49, 58.50, -64.17)
CIE-LCHlch(38.49, 86.83, 312.36°)
OKLaboklab(49.61% 0.1109 -0.1832)
OKLCHoklch(49.61% 0.214 301.2)
XYZxyz(19.1999, 10.3653, 53.8017)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31C5 #7CC531
analogous
#3132C5 #7A31C5 #C431C5
triadic
#7A31C5 #C57A31 #31C57A
tetradic
#7A31C5 #C53132 #7CC531 #31C5C4
square
#7A31C5 #C53132 #7CC531 #31C5C4
split-complementary
#7A31C5 #C5C431 #32C531
monochromatic
#3D1963 #5C2594 #7A31C5 #995DD7 #B88EE3

Accessibility & contrast

On white

6.83
#7A31C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7A31C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A31C5
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31C5#FFFFFF#000000##FFFFFF
##7A31C51.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#695779
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7a31c5;
/* rgb */ color: rgb(122, 49, 197);
/* oklch */ color: oklch(49.6% 0.214 301.2);
Tailwind
colors: {
  custom: {
    50: '#a771d8',
    500: '#7a31c5',
    950: '#000000',
  },
}
SCSS
$custom: #7a31c5;
$custom-light: #a771d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31c5",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 269.595,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49613,
    "c": 0.21415,
    "h": 301.2
  },
  "luminance": 0.10365
}

Semantic roles & 50–950 ramp

primary
#7A31C5
secondary
#A9CD85
accent
#E34495
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7A31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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