#7C31B8#7C31B8

#7C31B8 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.201 H 305.3°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7C31B8
RGBrgb(124, 49, 184)
HSLhsl(273, 58%, 46%)
HSVhsv(273, 73%, 72%)
CMYKcmyk(32.6%, 73.4%, 0%, 27.8%)
CIE-LABlab(37.74, 55.82, -57.75)
CIE-LCHlch(37.74, 80.32, 314.03°)
OKLaboklab(48.82% 0.1165 -0.1642)
OKLCHoklch(48.82% 0.201 305.3)
XYZxyz(18.0603, 9.9425, 46.3058)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C31B8 #6DB831
analogous
#3831B8 #7C31B8 #B831B0
triadic
#7C31B8 #B87C31 #31B87C
tetradic
#7C31B8 #B83831 #6DB831 #31B0B8
square
#7C31B8 #B83831 #6DB831 #31B0B8
split-complementary
#7C31B8 #B0B831 #31B838
monochromatic
#3B1757 #5B2488 #7C31B8 #9A55D2 #B785DE

Accessibility & contrast

On white

7.03
#7C31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7C31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C31B8
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C31B8#FFFFFF#000000##FFFFFF
##7C31B81.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c31b8;
/* rgb */ color: rgb(124, 49, 184);
/* oklch */ color: oklch(48.8% 0.201 305.3);
Tailwind
colors: {
  custom: {
    50: '#a770ce',
    500: '#7c31b8',
    950: '#000000',
  },
}
SCSS
$custom: #7c31b8;
$custom-light: #a770ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c31b8",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 273.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48824,
    "c": 0.20135,
    "h": 305.3
  },
  "luminance": 0.09942
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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