#7C31C0#7C31C0

#7C31C0 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.209 H 303.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7C31C0
RGBrgb(124, 49, 192)
HSLhsl(271, 59%, 47%)
HSVhsv(271, 74%, 75%)
CMYKcmyk(35.4%, 74.5%, 0%, 24.7%)
CIE-LABlab(38.35, 57.67, -61.45)
CIE-LCHlch(38.35, 84.28, 313.18°)
OKLaboklab(49.45% 0.1149 -0.1751)
OKLCHoklch(49.45% 0.209 303.3)
XYZxyz(18.9227, 10.2875, 50.8477)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31C0 #75C031
analogous
#3531C0 #7C31C0 #C031BC
triadic
#7C31C0 #C07C31 #31C07C
tetradic
#7C31C0 #C03531 #75C031 #31BCC0
square
#7C31C0 #C03531 #75C031 #31BCC0
split-complementary
#7C31C0 #BCC031 #31C035
monochromatic
#3D185E #5D258F #7C31C0 #9A59D5 #B88AE1

Accessibility & contrast

On white

6.87
#7C31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7C31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C31C0
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31C0#FFFFFF#000000##FFFFFF
##7C31C01.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#005ABD
Tritanopia (blue-blind)
#6E5576
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c31c0;
/* rgb */ color: rgb(124, 49, 192);
/* oklch */ color: oklch(49.5% 0.209 303.3);
Tailwind
colors: {
  custom: {
    50: '#a871d4',
    500: '#7c31c0',
    950: '#000000',
  },
}
SCSS
$custom: #7c31c0;
$custom-light: #a871d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31c0",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 271.469,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4945,
    "c": 0.20944,
    "h": 303.3
  },
  "luminance": 0.10287
}

Semantic roles & 50–950 ramp

primary
#7C31C0
secondary
#A5CB82
accent
#E34590
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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