#7C31AE#7C31AE

#7C31AE is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.1% C 0.191 H 308.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7C31AE
RGBrgb(124, 49, 174)
HSLhsl(276, 56%, 44%)
HSVhsv(276, 72%, 68%)
CMYKcmyk(28.7%, 71.8%, 0%, 31.8%)
CIE-LABlab(37.00, 53.53, -53.02)
CIE-LCHlch(37.00, 75.35, 315.28°)
OKLaboklab(48.07% 0.1182 -0.1503)
OKLCHoklch(48.07% 0.191 308.2)
XYZxyz(17.0489, 9.5380, 40.9791)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31AE #63AE31
analogous
#3D31AE #7C31AE #AE31A1
triadic
#7C31AE #AE7C31 #31AE7C
tetradic
#7C31AE #AE3D31 #63AE31 #31A1AE
square
#7C31AE #AE3D31 #63AE31 #31A1AE
split-complementary
#7C31AE #A1AE31 #31AE3D
monochromatic
#38164E #5A247E #7C31AE #9B4FCD #B67FDB

Accessibility & contrast

On white

7.22
#7C31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7C31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C31AE
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31AE#FFFFFF#000000##FFFFFF
##7C31AE1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0D58AB
Tritanopia (blue-blind)
#744E6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7c31ae;
/* rgb */ color: rgb(124, 49, 174);
/* oklch */ color: oklch(48.1% 0.191 308.2);
Tailwind
colors: {
  custom: {
    50: '#a670c7',
    500: '#7c31ae',
    950: '#000000',
  },
}
SCSS
$custom: #7c31ae;
$custom-light: #a670c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31ae",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 276,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48067,
    "c": 0.19123,
    "h": 308.2
  },
  "luminance": 0.09538
}

Semantic roles & 50–950 ramp

primary
#7C31AE
secondary
#96C477
accent
#DF4885
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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