#7B4FA5#7B4FA5

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

Color values

HEX#7B4FA5
RGBrgb(123, 79, 165)
HSLhsl(271, 35%, 48%)
HSVhsv(271, 52%, 65%)
CMYKcmyk(25.5%, 52.1%, 0%, 35.3%)
CIE-LABlab(42.03, 35.69, -39.60)
CIE-LCHlch(42.03, 53.31, 312.02°)
OKLaboklab(51.51% 0.0801 -0.1112)
OKLCHoklch(51.51% 0.137 305.8)
XYZxyz(17.7545, 12.5197, 37.0712)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4FA5 #79A54F
analogous
#504FA5 #7B4FA5 #A54FA4
triadic
#7B4FA5 #A57B4F #4FA57B
tetradic
#7B4FA5 #A5504F #79A54F #4FA4A5
square
#7B4FA5 #A5504F #79A54F #4FA4A5
split-complementary
#7B4FA5 #A4A54F #4FA550
monochromatic
#3D2752 #5C3B7C #7B4FA5 #9975BD #B89ED1

Accessibility & contrast

On white

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

On black

3.50
#7B4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7B4FA5#FFFFFF#000000##FFFFFF
##7B4FA51.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A8
Deuteranopia (green-blind)
#4263A3
Tritanopia (blue-blind)
#745E72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b4fa5;
/* rgb */ color: rgb(123, 79, 165);
/* oklch */ color: oklch(51.5% 0.137 305.8);
Tailwind
colors: {
  custom: {
    50: '#a382c0',
    500: '#7b4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7b4fa5;
$custom-light: #a382c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4fa5",
  "rgb": {
    "r": 123,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 270.698,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51511,
    "c": 0.13701,
    "h": 305.8
  },
  "luminance": 0.1252
}

Semantic roles & 50–950 ramp

primary
#7B4FA5
secondary
#A7BD92
accent
#CB5D93
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7B4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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