#7C31CE#7C31CE

#7C31CE is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.6% C 0.224 H 299.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7C31CE
RGBrgb(124, 49, 206)
HSLhsl(269, 62%, 50%)
HSVhsv(269, 76%, 81%)
CMYKcmyk(39.8%, 76.2%, 0%, 19.2%)
CIE-LABlab(39.48, 60.97, -67.78)
CIE-LCHlch(39.48, 91.17, 311.97°)
OKLaboklab(50.59% 0.1116 -0.1937)
OKLCHoklch(50.59% 0.224 299.9)
XYZxyz(20.5483, 10.9377, 59.4092)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31CE #83CE31
analogous
#3135CE #7C31CE #CA31CE
triadic
#7C31CE #CE7C31 #31CE7C
tetradic
#7C31CE #CE3135 #83CE31 #31CECA
square
#7C31CE #CE3135 #83CE31 #31CECA
split-complementary
#7C31CE #CECA31 #35CE31
monochromatic
#40196B #5E259D #7C31CE #9B62DA #BB94E6

Accessibility & contrast

On white

6.59
#7C31CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7C31CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C31CE
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31CE#FFFFFF#000000##FFFFFF
##7C31CE1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c31ce;
/* rgb */ color: rgb(124, 49, 206);
/* oklch */ color: oklch(50.6% 0.224 299.9);
Tailwind
colors: {
  custom: {
    50: '#a971de',
    500: '#7c31ce',
    950: '#000000',
  },
}
SCSS
$custom: #7c31ce;
$custom-light: #a971de;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31ce",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 206
  },
  "hsl": {
    "h": 268.662,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.50586,
    "c": 0.22356,
    "h": 299.9
  },
  "luminance": 0.10938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C31CE

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

Preview Lab → · Contrast checker → · Palette generator →

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