#7D31AC#7D31AC

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

Color values

HEX#7D31AC
RGBrgb(125, 49, 172)
HSLhsl(277, 56%, 43%)
HSVhsv(277, 72%, 67%)
CMYKcmyk(27.3%, 71.5%, 0%, 32.5%)
CIE-LABlab(37.00, 53.29, -51.83)
CIE-LCHlch(37.00, 74.34, 315.80°)
OKLaboklab(48.05% 0.1198 -0.1468)
OKLCHoklch(48.05% 0.19 309.2)
XYZxyz(17.0007, 9.5355, 39.9667)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31AC #60AC31
analogous
#3F31AC #7D31AC #AC319D
triadic
#7D31AC #AC7D31 #31AC7D
tetradic
#7D31AC #AC3F31 #60AC31 #319DAC
square
#7D31AC #AC3F31 #60AC31 #319DAC
split-complementary
#7D31AC #9DAC31 #31AC3F
monochromatic
#38164D #5A237C #7D31AC #9C4ECC #B77DDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D31AC#FFFFFF#000000##FFFFFF
##7D31AC1.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)
#0054B0
Deuteranopia (green-blind)
#1558A9
Tritanopia (blue-blind)
#764D6B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7d31ac;
/* rgb */ color: rgb(125, 49, 172);
/* oklch */ color: oklch(48.0% 0.190 309.2);
Tailwind
colors: {
  custom: {
    50: '#a770c5',
    500: '#7d31ac',
    950: '#000000',
  },
}
SCSS
$custom: #7d31ac;
$custom-light: #a770c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31ac",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 277.073,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.48048,
    "c": 0.1895,
    "h": 309.2
  },
  "luminance": 0.09535
}

Semantic roles & 50–950 ramp

primary
#7D31AC
secondary
#93C376
accent
#DF4982
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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