#7C31B4#7C31B4

#7C31B4 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.197 H 306.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7C31B4
RGBrgb(124, 49, 180)
HSLhsl(274, 57%, 45%)
HSVhsv(274, 73%, 71%)
CMYKcmyk(31.1%, 72.8%, 0%, 29.4%)
CIE-LABlab(37.44, 54.90, -55.87)
CIE-LCHlch(37.44, 78.33, 314.50°)
OKLaboklab(48.52% 0.1172 -0.1587)
OKLCHoklch(48.52% 0.197 306.4)
XYZxyz(17.6469, 9.7772, 44.1287)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31B4 #69B431
analogous
#3A31B4 #7C31B4 #B431AB
triadic
#7C31B4 #B47C31 #31B47C
tetradic
#7C31B4 #B43A31 #69B431 #31ABB4
square
#7C31B4 #B43A31 #69B431 #31ABB4
split-complementary
#7C31B4 #ABB431 #31B43A
monochromatic
#3A1754 #5B2484 #7C31B4 #9A52D0 #B682DD

Accessibility & contrast

On white

7.11
#7C31B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7C31B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C31B4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31B4#FFFFFF#000000##FFFFFF
##7C31B41.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#725070
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7c31b4;
/* rgb */ color: rgb(124, 49, 180);
/* oklch */ color: oklch(48.5% 0.197 306.4);
Tailwind
colors: {
  custom: {
    50: '#a770cb',
    500: '#7c31b4',
    950: '#000000',
  },
}
SCSS
$custom: #7c31b4;
$custom-light: #a770cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31b4",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 274.351,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48517,
    "c": 0.1973,
    "h": 306.4
  },
  "luminance": 0.09777
}

Semantic roles & 50–950 ramp

primary
#7C31B4
secondary
#9BC67B
accent
#E04789
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7C31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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