#7C31B7#7C31B7

#7C31B7 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.200 H 305.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7C31B7
RGBrgb(124, 49, 183)
HSLhsl(274, 58%, 45%)
HSVhsv(274, 73%, 72%)
CMYKcmyk(32.2%, 73.2%, 0%, 28.2%)
CIE-LABlab(37.66, 55.59, -57.28)
CIE-LCHlch(37.66, 79.82, 314.14°)
OKLaboklab(48.75% 0.1167 -0.1629)
OKLCHoklch(48.75% 0.2 305.6)
XYZxyz(17.9558, 9.9007, 45.7557)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31B7 #6CB731
analogous
#3931B7 #7C31B7 #B731AF
triadic
#7C31B7 #B77C31 #31B77C
tetradic
#7C31B7 #B73931 #6CB731 #31AFB7
square
#7C31B7 #B73931 #6CB731 #31AFB7
split-complementary
#7C31B7 #AFB731 #31B739
monochromatic
#3B1756 #5B2487 #7C31B7 #9A54D1 #B784DE

Accessibility & contrast

On white

7.05
#7C31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7C31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C31B7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31B7#FFFFFF#000000##FFFFFF
##7C31B71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#715171
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c31b7;
/* rgb */ color: rgb(124, 49, 183);
/* oklch */ color: oklch(48.7% 0.200 305.6);
Tailwind
colors: {
  custom: {
    50: '#a770cd',
    500: '#7c31b7',
    950: '#000000',
  },
}
SCSS
$custom: #7c31b7;
$custom-light: #a770cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31b7",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 273.582,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48747,
    "c": 0.20034,
    "h": 305.6
  },
  "luminance": 0.09901
}

Semantic roles & 50–950 ramp

primary
#7C31B7
secondary
#9DC87C
accent
#E1478B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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