#7D31C1#7D31C1

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

Color values

HEX#7D31C1
RGBrgb(125, 49, 193)
HSLhsl(272, 60%, 47%)
HSVhsv(272, 75%, 76%)
CMYKcmyk(35.2%, 74.6%, 0%, 24.3%)
CIE-LABlab(38.56, 58.08, -61.69)
CIE-LCHlch(38.56, 84.73, 313.27°)
OKLaboklab(49.65% 0.1161 -0.1758)
OKLCHoklch(49.65% 0.211 303.4)
XYZxyz(19.1791, 10.4069, 51.4401)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31C1 #75C131
analogous
#3531C1 #7D31C1 #C131BD
triadic
#7D31C1 #C17D31 #31C17D
tetradic
#7D31C1 #C13531 #75C131 #31BDC1
square
#7D31C1 #C13531 #75C131 #31BDC1
split-complementary
#7D31C1 #BDC131 #31C135
monochromatic
#3E185F #5D2590 #7D31C1 #9B5AD5 #B98BE2

Accessibility & contrast

On white

6.82
#7D31C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7D31C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31C1
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31C1#FFFFFF#000000##FFFFFF
##7D31C11.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#6F5577
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d31c1;
/* rgb */ color: rgb(125, 49, 193);
/* oklch */ color: oklch(49.6% 0.211 303.4);
Tailwind
colors: {
  custom: {
    50: '#a971d5',
    500: '#7d31c1',
    950: '#000000',
  },
}
SCSS
$custom: #7d31c1;
$custom-light: #a971d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31c1",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 271.667,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4965,
    "c": 0.21065,
    "h": 303.4
  },
  "luminance": 0.10407
}

Semantic roles & 50–950 ramp

primary
#7D31C1
secondary
#A5CC82
accent
#E34590
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7D31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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