#7C31B9#7C31B9

#7C31B9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.202 H 305.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7C31B9
RGBrgb(124, 49, 185)
HSLhsl(273, 58%, 46%)
HSVhsv(273, 74%, 73%)
CMYKcmyk(33%, 73.5%, 0%, 27.5%)
CIE-LABlab(37.81, 56.05, -58.22)
CIE-LCHlch(37.81, 80.81, 313.91°)
OKLaboklab(48.9% 0.1163 -0.1656)
OKLCHoklch(48.9% 0.202 305.1)
XYZxyz(18.1655, 9.9846, 46.8598)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31B9 #6EB931
analogous
#3831B9 #7C31B9 #B931B2
triadic
#7C31B9 #B97C31 #31B97C
tetradic
#7C31B9 #B93831 #6EB931 #31B2B9
square
#7C31B9 #B93831 #6EB931 #31B2B9
split-complementary
#7C31B9 #B2B931 #31B938
monochromatic
#3B1758 #5C2489 #7C31B9 #9A55D2 #B786DF

Accessibility & contrast

On white

7.01
#7C31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7C31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C31B9
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31B9#FFFFFF#000000##FFFFFF
##7C31B91.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#715272
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c31b9;
/* rgb */ color: rgb(124, 49, 185);
/* oklch */ color: oklch(48.9% 0.202 305.1);
Tailwind
colors: {
  custom: {
    50: '#a770cf',
    500: '#7c31b9',
    950: '#000000',
  },
}
SCSS
$custom: #7c31b9;
$custom-light: #a770cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31b9",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 273.088,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48901,
    "c": 0.20237,
    "h": 305.1
  },
  "luminance": 0.09984
}

Semantic roles & 50–950 ramp

primary
#7C31B9
secondary
#9FC87D
accent
#E1468C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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