#7C31CF#7C31CF

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

Color values

HEX#7C31CF
RGBrgb(124, 49, 207)
HSLhsl(268, 62%, 50%)
HSVhsv(268, 76%, 81%)
CMYKcmyk(40.1%, 76.3%, 0%, 18.8%)
CIE-LABlab(39.56, 61.21, -68.23)
CIE-LCHlch(39.56, 91.66, 311.90°)
OKLaboklab(50.67% 0.1113 -0.195)
OKLCHoklch(50.67% 0.225 299.7)
XYZxyz(20.6701, 10.9865, 60.0510)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31CF #84CF31
analogous
#3135CF #7C31CF #CB31CF
triadic
#7C31CF #CF7C31 #31CF7C
tetradic
#7C31CF #CF3135 #84CF31 #31CFCB
square
#7C31CF #CF3135 #84CF31 #31CFCB
split-complementary
#7C31CF #CFCB31 #35CF31
monochromatic
#41196C #5E259E #7C31CF #9C63DB #BB94E6

Accessibility & contrast

On white

6.57
#7C31CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C31CF
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31CF#FFFFFF#000000##FFFFFF
##7C31CF1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#005CCC
Tritanopia (blue-blind)
#685B7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7c31cf;
/* rgb */ color: rgb(124, 49, 207);
/* oklch */ color: oklch(50.7% 0.225 299.7);
Tailwind
colors: {
  custom: {
    50: '#a971df',
    500: '#7c31cf',
    950: '#000000',
  },
}
SCSS
$custom: #7c31cf;
$custom-light: #a971df;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31cf",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 268.481,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50669,
    "c": 0.22456,
    "h": 299.7
  },
  "luminance": 0.10987
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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