#7B4AB7#7B4AB7

#7B4AB7 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.9% C 0.167 H 301.6°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7B4AB7
RGBrgb(123, 74, 183)
HSLhsl(267, 43%, 50%)
HSVhsv(267, 60%, 72%)
CMYKcmyk(32.8%, 59.6%, 0%, 28.2%)
CIE-LABlab(42.04, 43.00, -50.21)
CIE-LCHlch(42.04, 66.11, 310.58°)
OKLaboklab(51.87% 0.0873 -0.1422)
OKLCHoklch(51.87% 0.167 301.6)
XYZxyz(19.1624, 12.5273, 46.1990)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4AB7 #86B74A
analogous
#4A50B7 #7B4AB7 #B14AB7
triadic
#7B4AB7 #B77B4A #4AB77B
tetradic
#7B4AB7 #B74A50 #86B74A #4AB7B1
square
#7B4AB7 #B74A50 #86B74A #4AB7B1
split-complementary
#7B4AB7 #B7B14A #50B74A
monochromatic
#402660 #5E388C #7B4AB7 #9B76C8 #BBA2DA

Accessibility & contrast

On white

5.99
#7B4AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7B4AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4AB7
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4AB7#FFFFFF#000000##FFFFFF
##7B4AB71.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1063BB
Deuteranopia (green-blind)
#2B63B5
Tritanopia (blue-blind)
#6F6079
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b4ab7;
/* rgb */ color: rgb(123, 74, 183);
/* oklch */ color: oklch(51.9% 0.167 301.6);
Tailwind
colors: {
  custom: {
    50: '#a57fcd',
    500: '#7b4ab7',
    950: '#000000',
  },
}
SCSS
$custom: #7b4ab7;
$custom-light: #a57fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4ab7",
  "rgb": {
    "r": 123,
    "g": 74,
    "b": 183
  },
  "hsl": {
    "h": 266.972,
    "s": 43.083,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51869,
    "c": 0.16691,
    "h": 301.6
  },
  "luminance": 0.12527
}

Semantic roles & 50–950 ramp

primary
#7B4AB7
secondary
#B1C796
accent
#D3559A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7B4AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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