#7B4FA6#7B4FA6

#7B4FA6 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.6% C 0.138 H 305.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7B4FA6
RGBrgb(123, 79, 166)
HSLhsl(270, 36%, 48%)
HSVhsv(270, 52%, 65%)
CMYKcmyk(25.9%, 52.4%, 0%, 34.9%)
CIE-LABlab(42.09, 35.94, -40.11)
CIE-LCHlch(42.09, 53.85, 311.86°)
OKLaboklab(51.57% 0.0802 -0.1126)
OKLCHoklch(51.57% 0.138 305.4)
XYZxyz(17.8458, 12.5562, 37.5524)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4FA6 #7AA64F
analogous
#504FA6 #7B4FA6 #A64FA5
triadic
#7B4FA6 #A67B4F #4FA67B
tetradic
#7B4FA6 #A6504F #7AA64F #4FA5A6
square
#7B4FA6 #A6504F #7AA64F #4FA5A6
split-complementary
#7B4FA6 #A5A64F #4FA650
monochromatic
#3E2853 #5C3B7D #7B4FA6 #9A75BD #B89ED1

Accessibility & contrast

On white

5.98
#7B4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7B4FA6
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4FA6#FFFFFF#000000##FFFFFF
##7B4FA61.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#4164A4
Tritanopia (blue-blind)
#745F73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b4fa6;
/* rgb */ color: rgb(123, 79, 166);
/* oklch */ color: oklch(51.6% 0.138 305.4);
Tailwind
colors: {
  custom: {
    50: '#a382c1',
    500: '#7b4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7b4fa6;
$custom-light: #a382c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4fa6",
  "rgb": {
    "r": 123,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 270.345,
    "s": 35.51,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51571,
    "c": 0.13826,
    "h": 305.4
  },
  "luminance": 0.12556
}

Semantic roles & 50–950 ramp

primary
#7B4FA6
secondary
#A8BE93
accent
#CC5C93
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7B4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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