#7B31B6#7B31B6

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

Color values

HEX#7B31B6
RGBrgb(123, 49, 182)
HSLhsl(273, 58%, 45%)
HSVhsv(273, 73%, 71%)
CMYKcmyk(32.4%, 73.1%, 0%, 28.6%)
CIE-LABlab(37.45, 55.17, -57.04)
CIE-LCHlch(37.45, 79.35, 314.05°)
OKLaboklab(48.55% 0.1155 -0.1622)
OKLCHoklch(48.55% 0.199 305.4)
XYZxyz(17.7083, 9.7851, 45.2027)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31B6 #6CB631
analogous
#3831B6 #7B31B6 #B631AF
triadic
#7B31B6 #B67B31 #31B67B
tetradic
#7B31B6 #B63831 #6CB631 #31AFB6
square
#7B31B6 #B63831 #6CB631 #31AFB6
split-complementary
#7B31B6 #AFB631 #31B638
monochromatic
#3A1756 #5A2486 #7B31B6 #9953D1 #B684DE

Accessibility & contrast

On white

7.10
#7B31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B31B6
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31B6#FFFFFF#000000##FFFFFF
##7B31B61.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#705171
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7b31b6;
/* rgb */ color: rgb(123, 49, 182);
/* oklch */ color: oklch(48.5% 0.199 305.4);
Tailwind
colors: {
  custom: {
    50: '#a670cd',
    500: '#7b31b6',
    950: '#000000',
  },
}
SCSS
$custom: #7b31b6;
$custom-light: #a670cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31b6",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 273.383,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48546,
    "c": 0.19909,
    "h": 305.4
  },
  "luminance": 0.09785
}

Semantic roles & 50–950 ramp

primary
#7B31B6
secondary
#9DC77C
accent
#E1478B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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