#7D31C9#7D31C9

#7D31C9 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.219 H 301.5°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7D31C9
RGBrgb(125, 49, 201)
HSLhsl(270, 61%, 49%)
HSVhsv(270, 76%, 79%)
CMYKcmyk(37.8%, 75.6%, 0%, 21.2%)
CIE-LABlab(39.20, 59.95, -65.33)
CIE-LCHlch(39.20, 88.67, 312.54°)
OKLaboklab(50.29% 0.1142 -0.1865)
OKLCHoklch(50.29% 0.219 301.5)
XYZxyz(20.0958, 10.7735, 56.2678)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31C9 #7DC931
analogous
#3131C9 #7D31C9 #C931C9
triadic
#7D31C9 #C97D31 #31C97D
tetradic
#7D31C9 #C93131 #7DC931 #31C9C9
square
#7D31C9 #C93131 #7DC931 #31C9C9
split-complementary
#7D31C9 #C9C931 #31C931
monochromatic
#401967 #5E2598 #7D31C9 #9C5FD8 #BA90E4

Accessibility & contrast

On white

6.66
#7D31C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7D31C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31C9
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31C9#FFFFFF#000000##FFFFFF
##7D31C91.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#6C587B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7d31c9;
/* rgb */ color: rgb(125, 49, 201);
/* oklch */ color: oklch(50.3% 0.219 301.5);
Tailwind
colors: {
  custom: {
    50: '#a971da',
    500: '#7d31c9',
    950: '#000000',
  },
}
SCSS
$custom: #7d31c9;
$custom-light: #a971da;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31c9",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 270,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50292,
    "c": 0.21869,
    "h": 301.5
  },
  "luminance": 0.10774
}

Semantic roles & 50–950 ramp

primary
#7D31C9
secondary
#ABCF87
accent
#E44494
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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