#7B3AAA#7B3AAA

#7B3AAA is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.7% C 0.175 H 307.8°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7B3AAA
RGBrgb(123, 58, 170)
HSLhsl(275, 49%, 45%)
HSVhsv(275, 66%, 67%)
CMYKcmyk(27.6%, 65.9%, 0%, 33.3%)
CIE-LABlab(38.09, 48.20, -48.88)
CIE-LCHlch(38.09, 68.65, 314.60°)
OKLaboklab(48.73% 0.1074 -0.1383)
OKLCHoklch(48.73% 0.175 307.8)
XYZxyz(16.9356, 10.1396, 39.0874)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B3AAA #69AA3A
analogous
#433AAA #7B3AAA #AA3AA1
triadic
#7B3AAA #AA7B3A #3AAA7B
tetradic
#7B3AAA #AA433A #69AA3A #3AA1AA
square
#7B3AAA #AA433A #69AA3A #3AA1AA
split-complementary
#7B3AAA #A1AA3A #3AAA43
monochromatic
#391B4F #5A2A7C #7B3AAA #995AC7 #B588D6

Accessibility & contrast

On white

6.94
#7B3AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7B3AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B3AAA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B3AAA#FFFFFF#000000##FFFFFF
##7B3AAA1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#245AA7
Tritanopia (blue-blind)
#74516D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b3aaa;
/* rgb */ color: rgb(123, 58, 170);
/* oklch */ color: oklch(48.7% 0.175 307.8);
Tailwind
colors: {
  custom: {
    50: '#a575c4',
    500: '#7b3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7b3aaa;
$custom-light: #a575c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b3aaa",
  "rgb": {
    "r": 123,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 274.821,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48731,
    "c": 0.17507,
    "h": 307.8
  },
  "luminance": 0.10139
}

Semantic roles & 50–950 ramp

primary
#7B3AAA
secondary
#9BC17F
accent
#D94F89
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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