#7D31AF#7D31AF

#7D31AF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.3% C 0.193 H 308.3°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7D31AF
RGBrgb(125, 49, 175)
HSLhsl(276, 56%, 44%)
HSVhsv(276, 72%, 69%)
CMYKcmyk(28.6%, 72%, 0%, 31.4%)
CIE-LABlab(37.21, 53.96, -53.27)
CIE-LCHlch(37.21, 75.82, 315.37°)
OKLaboklab(48.27% 0.1194 -0.151)
OKLCHoklch(48.27% 0.193 308.3)
XYZxyz(17.2920, 9.6520, 41.5012)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31AF #63AF31
analogous
#3E31AF #7D31AF #AF31A2
triadic
#7D31AF #AF7D31 #31AF7D
tetradic
#7D31AF #AF3E31 #63AF31 #31A2AF
square
#7D31AF #AF3E31 #63AF31 #31A2AF
split-complementary
#7D31AF #A2AF31 #31AF3E
monochromatic
#39164F #5B247F #7D31AF #9C4FCE #B77FDB

Accessibility & contrast

On white

7.17
#7D31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7D31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D31AF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31AF#FFFFFF#000000##FFFFFF
##7D31AF1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0D58AC
Tritanopia (blue-blind)
#754E6D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d31af;
/* rgb */ color: rgb(125, 49, 175);
/* oklch */ color: oklch(48.3% 0.193 308.3);
Tailwind
colors: {
  custom: {
    50: '#a770c8',
    500: '#7d31af',
    950: '#000000',
  },
}
SCSS
$custom: #7d31af;
$custom-light: #a770c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31af",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 276.19,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48269,
    "c": 0.19252,
    "h": 308.3
  },
  "luminance": 0.09652
}

Semantic roles & 50–950 ramp

primary
#7D31AF
secondary
#96C478
accent
#E04884
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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