#7B31AA#7B31AA

#7B31AA is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.6% C 0.187 H 308.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7B31AA
RGBrgb(123, 49, 170)
HSLhsl(277, 55%, 43%)
HSVhsv(277, 71%, 67%)
CMYKcmyk(27.6%, 71.2%, 0%, 33.3%)
CIE-LABlab(36.57, 52.43, -51.33)
CIE-LCHlch(36.57, 73.37, 315.61°)
OKLaboklab(47.64% 0.1174 -0.1454)
OKLCHoklch(47.64% 0.187 308.9)
XYZxyz(16.5209, 9.3102, 38.9491)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31AA #60AA31
analogous
#3E31AA #7B31AA #AA319C
triadic
#7B31AA #AA7B31 #31AA7B
tetradic
#7B31AA #AA3E31 #60AA31 #319CAA
square
#7B31AA #AA3E31 #60AA31 #319CAA
split-complementary
#7B31AA #9CAA31 #31AA3E
monochromatic
#36164B #59237A #7B31AA #9A4DCC #B57CD9

Accessibility & contrast

On white

7.34
#7B31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7B31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B31AA
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31AA#FFFFFF#000000##FFFFFF
##7B31AA1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#1557A7
Tritanopia (blue-blind)
#744C6A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7b31aa;
/* rgb */ color: rgb(123, 49, 170);
/* oklch */ color: oklch(47.6% 0.187 308.9);
Tailwind
colors: {
  custom: {
    50: '#a570c4',
    500: '#7b31aa',
    950: '#000000',
  },
}
SCSS
$custom: #7b31aa;
$custom-light: #a570c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31aa",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 276.694,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47644,
    "c": 0.18689,
    "h": 308.9
  },
  "luminance": 0.0931
}

Semantic roles & 50–950 ramp

primary
#7B31AA
secondary
#93C275
accent
#DF4983
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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