#7B31AC#7B31AC

#7B31AC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.8% C 0.189 H 308.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7B31AC
RGBrgb(123, 49, 172)
HSLhsl(276, 56%, 43%)
HSVhsv(276, 72%, 67%)
CMYKcmyk(28.5%, 71.5%, 0%, 32.5%)
CIE-LABlab(36.72, 52.88, -52.29)
CIE-LCHlch(36.72, 74.37, 315.32°)
OKLaboklab(47.79% 0.1171 -0.1482)
OKLCHoklch(47.79% 0.189 308.3)
XYZxyz(16.7116, 9.3864, 39.9531)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31AC #62AC31
analogous
#3E31AC #7B31AC #AC319F
triadic
#7B31AC #AC7B31 #31AC7B
tetradic
#7B31AC #AC3E31 #62AC31 #319FAC
square
#7B31AC #AC3E31 #62AC31 #319FAC
split-complementary
#7B31AC #9FAC31 #31AC3E
monochromatic
#37164D #59237C #7B31AC #9A4ECC #B57DDA

Accessibility & contrast

On white

7.30
#7B31AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7B31AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B31AC
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31AC#FFFFFF#000000##FFFFFF
##7B31AC1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#1057A9
Tritanopia (blue-blind)
#734D6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b31ac;
/* rgb */ color: rgb(123, 49, 172);
/* oklch */ color: oklch(47.8% 0.189 308.3);
Tailwind
colors: {
  custom: {
    50: '#a670c5',
    500: '#7b31ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b31ac;
$custom-light: #a670c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31ac",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 276.098,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47792,
    "c": 0.18892,
    "h": 308.3
  },
  "luminance": 0.09386
}

Semantic roles & 50–950 ramp

primary
#7B31AC
secondary
#95C376
accent
#DF4985
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B31AC

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

Preview Lab → · Contrast checker → · Palette generator →

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