#7B4AA5#7B4AA5

#7B4AA5 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.7% C 0.145 H 306.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7B4AA5
RGBrgb(123, 74, 165)
HSLhsl(272, 38%, 47%)
HSVhsv(272, 55%, 65%)
CMYKcmyk(25.5%, 55.2%, 0%, 35.3%)
CIE-LABlab(40.94, 38.53, -41.34)
CIE-LCHlch(40.94, 56.51, 312.98°)
OKLaboklab(50.7% 0.087 -0.1162)
OKLCHoklch(50.7% 0.145 306.8)
XYZxyz(17.4073, 11.8253, 36.9555)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4AA5 #74A54A
analogous
#4E4AA5 #7B4AA5 #A54AA2
triadic
#7B4AA5 #A57B4A #4AA57B
tetradic
#7B4AA5 #A54E4A #74A54A #4AA2A5
square
#7B4AA5 #A54E4A #74A54A #4AA2A5
split-complementary
#7B4AA5 #A2A54A #4AA54E
monochromatic
#3C2450 #5C377B #7B4AA5 #996EBE #B798D1

Accessibility & contrast

On white

6.24
#7B4AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7B4AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4AA5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4AA5#FFFFFF#000000##FFFFFF
##7B4AA51.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5FA8
Deuteranopia (green-blind)
#3C61A3
Tritanopia (blue-blind)
#745B70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b4aa5;
/* rgb */ color: rgb(123, 74, 165);
/* oklch */ color: oklch(50.7% 0.145 306.8);
Tailwind
colors: {
  custom: {
    50: '#a47ec0',
    500: '#7b4aa5',
    950: '#000000',
  },
}
SCSS
$custom: #7b4aa5;
$custom-light: #a47ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4aa5",
  "rgb": {
    "r": 123,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 272.308,
    "s": 38.075,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50703,
    "c": 0.14519,
    "h": 306.8
  },
  "luminance": 0.11825
}

Semantic roles & 50–950 ramp

primary
#7B4AA5
secondary
#A4BD8E
accent
#CE5A8F
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7B4AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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