#7D31CE#7D31CE

#7D31CE is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.7% C 0.224 H 300.3°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7D31CE
RGBrgb(125, 49, 206)
HSLhsl(269, 62%, 50%)
HSVhsv(269, 76%, 81%)
CMYKcmyk(39.3%, 76.2%, 0%, 19.2%)
CIE-LABlab(39.60, 61.13, -67.57)
CIE-LCHlch(39.60, 91.12, 312.14°)
OKLaboklab(50.7% 0.113 -0.1931)
OKLCHoklch(50.7% 0.224 300.3)
XYZxyz(20.6936, 11.0126, 59.4160)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D31CE #82CE31
analogous
#3133CE #7D31CE #CC31CE
triadic
#7D31CE #CE7D31 #31CE7D
tetradic
#7D31CE #CE3133 #82CE31 #31CECC
square
#7D31CE #CE3133 #82CE31 #31CECC
split-complementary
#7D31CE #CECC31 #33CE31
monochromatic
#41196B #5F259D #7D31CE #9C62DA #BB94E6

Accessibility & contrast

On white

6.56
#7D31CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7D31CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D31CE
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D31CE#FFFFFF#000000##FFFFFF
##7D31CE1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#6A5B7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7d31ce;
/* rgb */ color: rgb(125, 49, 206);
/* oklch */ color: oklch(50.7% 0.224 300.3);
Tailwind
colors: {
  custom: {
    50: '#aa71de',
    500: '#7d31ce',
    950: '#000000',
  },
}
SCSS
$custom: #7d31ce;
$custom-light: #aa71de;
$custom-dark: #000000;
JSON
{
  "hex": "#7d31ce",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 206
  },
  "hsl": {
    "h": 269.045,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.50702,
    "c": 0.22371,
    "h": 300.3
  },
  "luminance": 0.11013
}

Semantic roles & 50–950 ramp

primary
#7D31CE
secondary
#AFD18A
accent
#E54396
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D31CE

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

Preview Lab → · Contrast checker → · Palette generator →

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