#7C31CA#7C31CA

#7C31CA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.220 H 300.8°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#7C31CA
RGBrgb(124, 49, 202)
HSLhsl(269, 61%, 49%)
HSVhsv(269, 76%, 79%)
CMYKcmyk(38.6%, 75.7%, 0%, 20.8%)
CIE-LABlab(39.15, 60.02, -65.99)
CIE-LCHlch(39.15, 89.21, 312.29°)
OKLaboklab(50.26% 0.1126 -0.1885)
OKLCHoklch(50.26% 0.22 300.8)
XYZxyz(20.0685, 10.7458, 56.8825)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31CA #7FCA31
analogous
#3132CA #7C31CA #C931CA
triadic
#7C31CA #CA7C31 #31CA7C
tetradic
#7C31CA #CA3132 #7FCA31 #31CAC9
square
#7C31CA #CA3132 #7FCA31 #31CAC9
split-complementary
#7C31CA #CAC931 #32CA31
monochromatic
#401967 #5E2599 #7C31CA #9B60D8 #BA91E4

Accessibility & contrast

On white

6.67
#7C31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C31CA
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31CA#FFFFFF#000000##FFFFFF
##7C31CA1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#6A597C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7c31ca;
/* rgb */ color: rgb(124, 49, 202);
/* oklch */ color: oklch(50.3% 0.220 300.8);
Tailwind
colors: {
  custom: {
    50: '#a971db',
    500: '#7c31ca',
    950: '#000000',
  },
}
SCSS
$custom: #7c31ca;
$custom-light: #a971db;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31ca",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 269.412,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50256,
    "c": 0.21953,
    "h": 300.8
  },
  "luminance": 0.10746
}

Semantic roles & 50–950 ramp

primary
#7C31CA
secondary
#ACCF88
accent
#E44495
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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