#7B4AAA#7B4AAA

#7B4AAA is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.0% C 0.151 H 305.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7B4AAA
RGBrgb(123, 74, 170)
HSLhsl(271, 39%, 48%)
HSVhsv(271, 56%, 67%)
CMYKcmyk(27.6%, 56.5%, 0%, 33.3%)
CIE-LABlab(41.23, 39.75, -43.84)
CIE-LCHlch(41.23, 59.18, 312.20°)
OKLaboklab(51.02% 0.0872 -0.1235)
OKLCHoklch(51.02% 0.151 305.2)
XYZxyz(17.8713, 12.0109, 39.3993)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4AAA #79AA4A
analogous
#4B4AAA #7B4AAA #AA4AA9
triadic
#7B4AAA #AA7B4A #4AAA7B
tetradic
#7B4AAA #AA4B4A #79AA4A #4AA9AA
square
#7B4AAA #AA4B4A #79AA4A #4AA9AA
split-complementary
#7B4AAA #A9AA4A #4AAA4B
monochromatic
#3D2555 #5C377F #7B4AAA #9970C1 #B89BD3

Accessibility & contrast

On white

6.17
#7B4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7B4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4AAA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4AAA#FFFFFF#000000##FFFFFF
##7B4AAA1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2760AD
Deuteranopia (green-blind)
#3861A8
Tritanopia (blue-blind)
#735C73
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b4aaa;
/* rgb */ color: rgb(123, 74, 170);
/* oklch */ color: oklch(51.0% 0.151 305.2);
Tailwind
colors: {
  custom: {
    50: '#a47ec4',
    500: '#7b4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7b4aaa;
$custom-light: #a47ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4aaa",
  "rgb": {
    "r": 123,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 270.625,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51017,
    "c": 0.15124,
    "h": 305.2
  },
  "luminance": 0.12011
}

Semantic roles & 50–950 ramp

primary
#7B4AAA
secondary
#A7C090
accent
#CF5993
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7B4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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