#7C31B3#7C31B3

#7C31B3 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.196 H 306.7°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7C31B3
RGBrgb(124, 49, 179)
HSLhsl(275, 57%, 45%)
HSVhsv(275, 73%, 70%)
CMYKcmyk(30.7%, 72.6%, 0%, 29.8%)
CIE-LABlab(37.37, 54.67, -55.40)
CIE-LCHlch(37.37, 77.83, 314.62°)
OKLaboklab(48.44% 0.1174 -0.1573)
OKLCHoklch(48.44% 0.196 306.7)
XYZxyz(17.5454, 9.7366, 43.5941)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31B3 #68B331
analogous
#3B31B3 #7C31B3 #B331A9
triadic
#7C31B3 #B37C31 #31B37C
tetradic
#7C31B3 #B33B31 #68B331 #31A9B3
square
#7C31B3 #B33B31 #68B331 #31A9B3
split-complementary
#7C31B3 #A9B331 #31B33B
monochromatic
#391753 #5B2483 #7C31B3 #9A52D0 #B682DD

Accessibility & contrast

On white

7.13
#7C31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7C31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C31B3
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31B3#FFFFFF#000000##FFFFFF
##7C31B31.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#73506F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c31b3;
/* rgb */ color: rgb(124, 49, 179);
/* oklch */ color: oklch(48.4% 0.196 306.7);
Tailwind
colors: {
  custom: {
    50: '#a770cb',
    500: '#7c31b3',
    950: '#000000',
  },
}
SCSS
$custom: #7c31b3;
$custom-light: #a770cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31b3",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 274.615,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48442,
    "c": 0.19629,
    "h": 306.7
  },
  "luminance": 0.09736
}

Semantic roles & 50–950 ramp

primary
#7C31B3
secondary
#9AC67A
accent
#E04888
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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