#7C31BA#7C31BA

#7C31BA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.203 H 304.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7C31BA
RGBrgb(124, 49, 186)
HSLhsl(273, 58%, 46%)
HSVhsv(273, 74%, 73%)
CMYKcmyk(33.3%, 73.7%, 0%, 27.1%)
CIE-LABlab(37.89, 56.28, -58.68)
CIE-LCHlch(37.89, 81.31, 313.80°)
OKLaboklab(48.98% 0.1161 -0.167)
OKLCHoklch(48.98% 0.203 304.8)
XYZxyz(18.2714, 10.0270, 47.4177)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31BA #6FBA31
analogous
#3731BA #7C31BA #BA31B3
triadic
#7C31BA #BA7C31 #31BA7C
tetradic
#7C31BA #BA3731 #6FBA31 #31B3BA
square
#7C31BA #BA3731 #6FBA31 #31B3BA
split-complementary
#7C31BA #B3BA31 #31BA37
monochromatic
#3B1759 #5C248A #7C31BA #9A56D2 #B786DF

Accessibility & contrast

On white

6.99
#7C31BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7C31BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C31BA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31BA#FFFFFF#000000##FFFFFF
##7C31BA1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#705273
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c31ba;
/* rgb */ color: rgb(124, 49, 186);
/* oklch */ color: oklch(49.0% 0.203 304.8);
Tailwind
colors: {
  custom: {
    50: '#a770d0',
    500: '#7c31ba',
    950: '#000000',
  },
}
SCSS
$custom: #7c31ba;
$custom-light: #a770d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31ba",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 272.847,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48978,
    "c": 0.20338,
    "h": 304.8
  },
  "luminance": 0.10027
}

Semantic roles & 50–950 ramp

primary
#7C31BA
secondary
#A0C97E
accent
#E2468D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7C31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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