#7B4ABA#7B4ABA

#7B4ABA is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.1% C 0.171 H 300.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7B4ABA
RGBrgb(123, 74, 186)
HSLhsl(266, 45%, 51%)
HSVhsv(266, 60%, 73%)
CMYKcmyk(33.9%, 60.2%, 0%, 27.1%)
CIE-LABlab(42.24, 43.77, -51.66)
CIE-LCHlch(42.24, 67.71, 310.27°)
OKLaboklab(52.07% 0.0873 -0.1465)
OKLCHoklch(52.07% 0.171 300.8)
XYZxyz(19.4780, 12.6536, 47.8611)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4ABA #89BA4A
analogous
#4A51BA #7B4ABA #B34ABA
triadic
#7B4ABA #BA7B4A #4ABA7B
tetradic
#7B4ABA #BA4A51 #89BA4A #4ABAB3
square
#7B4ABA #BA4A51 #89BA4A #4ABAB3
split-complementary
#7B4ABA #BAB34A #51BA4A
monochromatic
#412664 #5E3790 #7B4ABA #9B76CB #BCA3DC

Accessibility & contrast

On white

5.95
#7B4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7B4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4ABA
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4ABA#FFFFFF#000000##FFFFFF
##7B4ABA1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0563BE
Deuteranopia (green-blind)
#2663B7
Tritanopia (blue-blind)
#6E617B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4aba;
/* rgb */ color: rgb(123, 74, 186);
/* oklch */ color: oklch(52.1% 0.171 300.8);
Tailwind
colors: {
  custom: {
    50: '#a57fcf',
    500: '#7b4aba',
    950: '#000000',
  },
}
SCSS
$custom: #7b4aba;
$custom-light: #a57fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4aba",
  "rgb": {
    "r": 123,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 266.25,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52073,
    "c": 0.17052,
    "h": 300.8
  },
  "luminance": 0.12654
}

Semantic roles & 50–950 ramp

primary
#7B4ABA
secondary
#B3C997
accent
#D5539C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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