#7D31B6#7D31B6

#7D31B6 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.8% C 0.200 H 306.3°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7D31B6
RGBrgb(125, 49, 182)
HSLhsl(274, 58%, 45%)
HSVhsv(274, 73%, 71%)
CMYKcmyk(31.3%, 73.1%, 0%, 28.6%)
CIE-LABlab(37.72, 55.55, -56.59)
CIE-LCHlch(37.72, 79.29, 314.47°)
OKLaboklab(48.8% 0.1182 -0.1608)
OKLCHoklch(48.8% 0.2 306.3)
XYZxyz(17.9974, 9.9342, 45.2163)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31B6 #6AB631
analogous
#3B31B6 #7D31B6 #B631AC
triadic
#7D31B6 #B67D31 #31B67D
tetradic
#7D31B6 #B63B31 #6AB631 #31ACB6
square
#7D31B6 #B63B31 #6AB631 #31ACB6
split-complementary
#7D31B6 #ACB631 #31B63B
monochromatic
#3B1756 #5C2486 #7D31B6 #9B53D1 #B784DE

Accessibility & contrast

On white

7.03
#7D31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7D31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D31B6
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31B6#FFFFFF#000000##FFFFFF
##7D31B61.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#735171
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7d31b6;
/* rgb */ color: rgb(125, 49, 182);
/* oklch */ color: oklch(48.8% 0.200 306.3);
Tailwind
colors: {
  custom: {
    50: '#a870cd',
    500: '#7d31b6',
    950: '#000000',
  },
}
SCSS
$custom: #7d31b6;
$custom-light: #a870cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31b6",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 274.286,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48795,
    "c": 0.19957,
    "h": 306.3
  },
  "luminance": 0.09934
}

Semantic roles & 50–950 ramp

primary
#7D31B6
secondary
#9CC77C
accent
#E14789
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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