#7C31AA#7C31AA

#7C31AA is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.8% C 0.187 H 309.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7C31AA
RGBrgb(124, 49, 170)
HSLhsl(277, 55%, 43%)
HSVhsv(277, 71%, 67%)
CMYKcmyk(27.1%, 71.2%, 0%, 33.3%)
CIE-LABlab(36.71, 52.63, -51.10)
CIE-LCHlch(36.71, 73.36, 315.85°)
OKLaboklab(47.77% 0.1188 -0.1447)
OKLCHoklch(47.77% 0.187 309.4)
XYZxyz(16.6647, 9.3843, 38.9559)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31AA #5FAA31
analogous
#3F31AA #7C31AA #AA319B
triadic
#7C31AA #AA7C31 #31AA7C
tetradic
#7C31AA #AA3F31 #5FAA31 #319BAA
square
#7C31AA #AA3F31 #5FAA31 #319BAA
split-complementary
#7C31AA #9BAA31 #31AA3F
monochromatic
#37164B #59237A #7C31AA #9B4DCC #B67CD9

Accessibility & contrast

On white

7.30
#7C31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7C31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C31AA
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31AA#FFFFFF#000000##FFFFFF
##7C31AA1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c31aa;
/* rgb */ color: rgb(124, 49, 170);
/* oklch */ color: oklch(47.8% 0.187 309.4);
Tailwind
colors: {
  custom: {
    50: '#a670c4',
    500: '#7c31aa',
    950: '#000000',
  },
}
SCSS
$custom: #7c31aa;
$custom-light: #a670c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31aa",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 277.19,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47773,
    "c": 0.18718,
    "h": 309.4
  },
  "luminance": 0.09384
}

Semantic roles & 50–950 ramp

primary
#7C31AA
secondary
#92C275
accent
#DF4982
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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